diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 14:31:24 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 14:31:24 +0000 |
| commit | 093ecdf95dba992e8afb616870874a4c455962e1 (patch) | |
| tree | c94a3a3dbea16dbb611d4edb99228ddd6e3efbb5 /lib/webrick/https.rb | |
| parent | 40092cb83be935b369a4d45bf31f8feac83ca0f1 (diff) | |
| download | ruby-093ecdf95dba992e8afb616870874a4c455962e1.tar.gz ruby-093ecdf95dba992e8afb616870874a4c455962e1.tar.xz ruby-093ecdf95dba992e8afb616870874a4c455962e1.zip | |
* lib/webrick/httprequest.rb (meta_vers): should not set
HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH.
* lib/webrick/https.rb (HTTPRequest#parse): should check presence
of cert() method to detect SSLSocket.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/https.rb')
| -rw-r--r-- | lib/webrick/https.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/https.rb b/lib/webrick/https.rb index 0d8ebd2ba..45db229c5 100644 --- a/lib/webrick/https.rb +++ b/lib/webrick/https.rb @@ -21,8 +21,8 @@ module WEBrick alias orig_parse parse def parse(socket=nil) - if socket && socket.is_a?(OpenSSL::SSL::SSLSocket) - @server_cert = @config[:SSLCertificate] + if socket.respond_to?(:cert) + @server_cert = socket.cert || @config[:SSLCertificate] @client_cert = socket.peer_cert @client_cert_chain = socket.peer_cert_chain @cipher = socket.cipher |
