diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-22 21:13:06 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-22 21:13:06 +0000 |
| commit | 59c8df83cb6c63a5e6947e46e88b4b8844019d16 (patch) | |
| tree | ed6c46567fa49ba4bf3a85e1e8e06840986fca65 /lib/webrick/httpresponse.rb | |
| parent | 779fc7f77108c3babb9534f7467da702ba818d44 (diff) | |
| download | ruby-59c8df83cb6c63a5e6947e46e88b4b8844019d16.tar.gz ruby-59c8df83cb6c63a5e6947e46e88b4b8844019d16.tar.xz ruby-59c8df83cb6c63a5e6947e46e88b4b8844019d16.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpresponse.rb')
| -rw-r--r-- | lib/webrick/httpresponse.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb index 9d6e5522e..a0e7155ce 100644 --- a/lib/webrick/httpresponse.rb +++ b/lib/webrick/httpresponse.rb @@ -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. |
