mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
to the value of status header field. ([ruby-dev:40617]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08e340fb75
commit
9c560ca864
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Feb 13 16:56:52 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
|
||||
to the value of status header field. ([ruby-dev:40617])
|
||||
|
||||
Sun Feb 13 11:38:40 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
|
||||
|
||||
* regparse.c (type_cclass_hash): (Thanks Nobu) fixed
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue