mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/cgi.rb (CGI): add support for mod_ruby.
* lib/webrick/cgi.rb (CGI::Socket): add check for existence of OpenSSL module in all HTTPS related methods. * lib/webrick/cgi.rb (CGI::Socket#cipher): should create similar value to OpenSSL::SSLSocket#cipher. * lib/webrick/httpresponse.rb (HTTPResponse#setup_header): should set "connection: close" if @keep_alive is false. * lib/webrick/https.rb (HTTPrequest#meta_vars): add supprt for SSL_PROTOCOL, SSL_CIPHER_USEKEYSIZE and SSL_CIPHER_ALGKEYSIZE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6bcf78e40d
commit
4a663be97e
4 changed files with 103 additions and 37 deletions
|
@ -132,11 +132,12 @@ module WEBrick
|
|||
# Keep-Alive connection.
|
||||
if @header['connection'] == "close"
|
||||
@keep_alive = false
|
||||
end
|
||||
if keep_alive?
|
||||
elsif keep_alive?
|
||||
if chunked? || @header['content-length']
|
||||
@header['connection'] = "Keep-Alive"
|
||||
end
|
||||
else
|
||||
@header['connection'] = "close"
|
||||
end
|
||||
|
||||
# Location is a single absoluteURI.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue