1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/https.rb (parse_uri, meta_vars): suppress warnings.

* lib/webrick/ssl.rb (listen): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-01-17 05:31:52 +00:00
parent 9b58e8454a
commit 12278f0b70
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ module WEBrick
alias orig_parse_uri parse_uri
def parse_uri(str, scheme="https")
if @server_cert
if server_cert
return orig_parse_uri(str, scheme)
end
return orig_parse_uri(str)
@ -43,7 +43,7 @@ module WEBrick
def meta_vars
meta = orig_meta_vars
if @server_cert
if server_cert
meta["HTTPS"] = "on"
meta["SSL_SERVER_CERT"] = @server_cert.to_pem
meta["SSL_CLIENT_CERT"] = @client_cert ? @client_cert.to_pem : ""

View file

@ -83,6 +83,7 @@ module WEBrick
@ssl_context ||= nil
end
undef listen
def listen(address, port)
listeners = Utils::create_listeners(address, port, @logger)
if @config[:SSLEnable]