From ff21b4ec44f2e106e3fa6f4e70a346c9072667dc Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Tue, 25 Nov 2003 16:02:45 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@5031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpserver.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/webrick/httpserver.rb') diff --git a/lib/webrick/httpserver.rb b/lib/webrick/httpserver.rb index cb5cd2af2..11227cf51 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 -- cgit