diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 08:00:35 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 08:00:35 +0000 |
| commit | 771b33035f1a30a2b4cf908e4aadbd6d41e9cf6a (patch) | |
| tree | 8a2d2a863464f80c32e726dacfb94705555cb5f8 /lib | |
| parent | b21ecf561dd0541e9b1e309aa7296e22f775820e (diff) | |
| download | ruby-771b33035f1a30a2b4cf908e4aadbd6d41e9cf6a.tar.gz ruby-771b33035f1a30a2b4cf908e4aadbd6d41e9cf6a.tar.xz ruby-771b33035f1a30a2b4cf908e4aadbd6d41e9cf6a.zip | |
* lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
to the value of status header field. ([ruby-dev:40617])
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/webrick/cgi.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb index ca81e4b93..77ae443c2 100644 --- a/lib/webrick/cgi.rb +++ b/lib/webrick/cgi.rb @@ -45,7 +45,10 @@ module WEBrick res = HTTPResponse.new(@config) unless @config[:NPH] or defined?(MOD_RUBY) def res.setup_header - @header["status"] ||= @status + unless @header["status"] + phrase = HTTPStatus::reason_phrase(@status) + @header["status"] = "#{@status} #{phrase}" + end super end def res.status_line |
