mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* test/xmlrpc/test_webrick_server.rb (setup_http_server):
should not include 'webrick/https' unless 'use_ssl' because it fails where openssl is not installed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
face1d284f
commit
56a97f11d0
2 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Sep 20 05:50:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
|
* test/xmlrpc/test_webrick_server.rb (setup_http_server):
|
||||||
|
should not include 'webrick/https' unless 'use_ssl' because
|
||||||
|
it fails where openssl is not installed.
|
||||||
|
|
||||||
Tue Sep 20 00:34:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Sep 20 00:34:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (io_close): call rb_io_close() directly if io is a T_FILE
|
* io.c (io_close): call rb_io_close() directly if io is a T_FILE
|
||||||
|
|
|
@ -33,13 +33,19 @@ class Test_Webrick < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup_http_server(port, use_ssl)
|
def setup_http_server(port, use_ssl)
|
||||||
require 'webrick/https'
|
option = {
|
||||||
start_server(
|
|
||||||
:Port => port,
|
:Port => port,
|
||||||
:SSLEnable => use_ssl,
|
:SSLEnable => use_ssl,
|
||||||
:SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE,
|
}
|
||||||
:SSLCertName => []
|
if use_ssl
|
||||||
) {|w| w.mount('/RPC2', create_servlet) }
|
require 'webrick/https'
|
||||||
|
option.update(
|
||||||
|
:SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE,
|
||||||
|
:SSLCertName => []
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
start_server(option) {|w| w.mount('/RPC2', create_servlet) }
|
||||||
|
|
||||||
@s = XMLRPC::Client.new3(:port => port, :use_ssl => use_ssl)
|
@s = XMLRPC::Client.new3(:port => port, :use_ssl => use_ssl)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue