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
---
lib/yahns/proxy_http_response.rb | 4 ++--
1 file 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 @@ def proxy_response_start(res, tip, kcar, req_res)
# 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)
--
EW
--
unsubscribe: [email protected]
archive: http://yhbt.net/yahns-public/