about summary refs log tree commit homepage
path: root/lib/unicorn/http_response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-05 14:30:29 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-09 19:50:41 -0800
commitcda1f3381096cdb8c78a126a4993e458bf798ca2 (patch)
tree2cab13e70c2e7b72d87dc35a5b2b2ef7e92c0683 /lib/unicorn/http_response.rb
parentbf680b1a61ab17b6a0e17432fd4ab22358ec83bd (diff)
downloadunicorn-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.rb2
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