mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Allows to suppress the Content-Length: header which send_status normally adds, by calling send_status(nil).
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@550 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
a891276e2c
commit
f58ea237f6
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ module Mongrel
|
|||
|
||||
def send_status(content_length=@body.length)
|
||||
if not @status_sent
|
||||
@header['Content-Length'] = content_length unless @status == 304
|
||||
@header['Content-Length'] = content_length if content_length and @status != 304
|
||||
write(Const::STATUS_FORMAT % [@status, HTTP_STATUS_CODES[@status]])
|
||||
@status_sent = true
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue