diff options
Diffstat (limited to 'lib/unicorn/const.rb')
-rw-r--r-- | lib/unicorn/const.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 7c236c6..73c334c 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -44,12 +44,6 @@ module Unicorn 505 => 'HTTP Version not supported' } - HTTP_STATUS_HEADERS = HTTP_STATUS_CODES.inject({}) do |hash, (code, text)| - text.freeze - hash[code] = "HTTP/1.1 #{code} #{text}\r\nConnection: close\r\n".freeze - hash - end - # Frequently used constants when constructing requests or responses. Many times # the constant just refers to a string with the same contents. Using these constants # gave about a 3% to 10% performance improvement over using the strings directly. |