about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-10-13 21:14:50 +0000
committerEric Wong <e@80x24.org>2015-10-13 21:17:41 +0000
commita3d4db346a5c49ce645fb55054ecb571e585f72a (patch)
treed1188cffd113b784b7ab36d88f54d3c7afeaf589 /lib
parent5e1450c9d9c5611752c9729954e3108c3565d3b0 (diff)
downloadyahns-a3d4db346a5c49ce645fb55054ecb571e585f72a.tar.gz
This can reduce the amount of garbage we have by a small
amount.  Once Ruby 2.3 comes out, we can rely on the
"frozen_string_literal: true" directive
Diffstat (limited to 'lib')
-rw-r--r--lib/yahns/proxy_http_response.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb
index 50c841d..3858456 100644
--- a/lib/yahns/proxy_http_response.rb
+++ b/lib/yahns/proxy_http_response.rb
@@ -91,8 +91,8 @@ module Yahns::HttpResponse # :nodoc:
 
     # For now, do not add a Date: header, assume upstream already did it
     # but do not care if they did not
-    res << (alive ? "Connection: keep-alive\r\n\r\n"
-                  : "Connection: close\r\n\r\n")
+    res << (alive ? "Connection: keep-alive\r\n\r\n".freeze
+                  : "Connection: close\r\n\r\n".freeze)
 
     # send the headers
     case rv = kgio_syssend(res, flags)