diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-05 14:30:29 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-09 19:50:41 -0800 |
commit | cda1f3381096cdb8c78a126a4993e458bf798ca2 (patch) | |
tree | 2cab13e70c2e7b72d87dc35a5b2b2ef7e92c0683 /lib/unicorn/http_response.rb | |
parent | bf680b1a61ab17b6a0e17432fd4ab22358ec83bd (diff) | |
download | unicorn-cda1f3381096cdb8c78a126a4993e458bf798ca2.tar.gz |
Regenerating headers constantly is a waste of time.
Diffstat (limited to 'lib/unicorn/http_response.rb')
-rw-r--r-- | lib/unicorn/http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index c3094cf..7454516 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -87,7 +87,7 @@ module Unicorn def send_status(content_length=@body.length) if not @status_sent @header['Content-Length'] = content_length if content_length and @status != 304 - write(Const::STATUS_FORMAT % [@status, HTTP_STATUS_CODES[@status]]) + write(HTTP_STATUS_HEADERS[@status]) @status_sent = true end end |