aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpserver.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-25 16:02:45 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-25 16:02:45 +0000
commit3d0d2d5ff1a75dcf32f455f306079f139269f280 (patch)
treea38ec54d602882c227be41284c1092c37e0204bb /lib/webrick/httpserver.rb
parent8408fc1585e8f83fca46cba203213295c56c7c2c (diff)
downloadruby-3d0d2d5ff1a75dcf32f455f306079f139269f280.tar.gz
* lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
* lib/webrick/httpserver.rb (HTTPServer#run): should pass the request's keep_alive flag to the response. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpserver.rb')
-rw-r--r--lib/webrick/httpserver.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/webrick/httpserver.rb b/lib/webrick/httpserver.rb
index cb5cd2af2f..11227cf517 100644
--- a/lib/webrick/httpserver.rb
+++ b/lib/webrick/httpserver.rb
@@ -47,6 +47,7 @@ module WEBrick
res.request_method = req.request_method
res.request_uri = req.request_uri
res.request_http_version = req.http_version
+ res.keep_alive = req.keep_alive?
if handler = @config[:RequestHandler]
handler.call(req, res)
end