diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/http_request.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 0c1f9bb..c176083 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -24,10 +24,7 @@ class Unicorn::HttpParser NULL_IO = StringIO.new("") # :stopdoc: - # A frozen format for this is about 15% faster - # Drop these frozen strings when Ruby 2.2 becomes more prevalent, - # 2.2+ optimizes hash assignments when used with literal string keys - HTTP_RESPONSE_START = [ 'HTTP', '/1.1 '] + HTTP_RESPONSE_START = [ 'HTTP'.freeze, '/1.1 '.freeze ] @@input_class = Unicorn::TeeInput @@check_client_connection = false |