mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
8408fc1585
commit
3d0d2d5ff1
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue