summaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpresponse.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
commitff21b4ec44f2e106e3fa6f4e70a346c9072667dc (patch)
treea38ec54d602882c227be41284c1092c37e0204bb /lib/webrick/httpresponse.rb
parentbcd8c67010c2b8d9b40fee1e758f54e8e07435ac (diff)
downloadruby-ff21b4ec44f2e106e3fa6f4e70a346c9072667dc.tar.gz
ruby-ff21b4ec44f2e106e3fa6f4e70a346c9072667dc.tar.xz
ruby-ff21b4ec44f2e106e3fa6f4e70a346c9072667dc.zip
* 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
Diffstat (limited to 'lib/webrick/httpresponse.rb')
-rw-r--r--lib/webrick/httpresponse.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index 6b00c2b88..667c4c46c 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -25,7 +25,8 @@ module WEBrick
attr_accessor :request_method, :request_uri, :request_http_version
attr_accessor :filename
- attr_reader :config, :keep_alive, :sent_size
+ attr_accessor :keep_alive
+ attr_reader :config, :sent_size
def initialize(config)
@config = config