diff options
Diffstat (limited to 'lib/webrick')
-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 6878da5749..eb99dab523 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 |