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:
parent
9b58e8454a
commit
12278f0b70
2 changed files with 3 additions and 2 deletions
|
@ -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 : ""
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue