diff options
author | Eric Wong <e@80x24.org> | 2013-11-27 07:17:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2013-11-27 07:17:47 +0000 |
commit | 457a07844b5bd3fcd8f0887961a1e1495a8a0e87 (patch) | |
tree | 851cb61d98abe35fe4b2da70085e78596f02da29 | |
parent | 9500e08721a7fd697e3449738cc20ffcc15aca8f (diff) | |
download | yahns-457a07844b5bd3fcd8f0887961a1e1495a8a0e87.tar.gz |
We do not use these strings in string assignment, and we're not in danger of modifying these strings in place, so do not freeze them.
-rw-r--r-- | lib/yahns/http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/http_response.rb b/lib/yahns/http_response.rb index 7207bd1..05923c9 100644 --- a/lib/yahns/http_response.rb +++ b/lib/yahns/http_response.rb @@ -19,7 +19,7 @@ module Yahns::HttpResponse # :nodoc: CONN_KA = "Connection: keep-alive\r\n\r\n" CONN_CLOSE = "Connection: close\r\n\r\n" Z = "" - CCC_RESPONSE_START = [ 'HTTP', '/1.1 ' ].map!(&:freeze) + CCC_RESPONSE_START = [ 'HTTP', '/1.1 ' ] RESPONSE_START = CCC_RESPONSE_START.join('') R100_RAW = "HTTP/1.1 100 Continue\r\n\r\n" R100_CCC = "100 Continue\r\n\r\nHTTP/1.1 " |