about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-27 00:27:02 +0000
committerEric Wong <e@80x24.org>2016-04-27 00:29:36 +0000
commit10aa29fa2c8fc4fdff8554eab24be07e6885aa50 (patch)
treea527085be7969bc8350243c1c5792844c7913647
parent395ed76a9916c850749a65d2a9040e39b803414d (diff)
downloadyahns-10aa29fa2c8fc4fdff8554eab24be07e6885aa50.tar.gz
We already check for the truthiness of "alive" in the "if"
statement, so re-setting is pointless.
-rw-r--r--lib/yahns/proxy_http_response.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb
index c8a2a42..e551323 100644
--- a/lib/yahns/proxy_http_response.rb
+++ b/lib/yahns/proxy_http_response.rb
@@ -101,7 +101,6 @@ module Yahns::HttpResponse # :nodoc:
     # but the backend does not terminate properly
     if alive && ! term && (env['HTTP_VERSION'] == 'HTTP/1.1'.freeze)
       res << "Transfer-Encoding: chunked\r\n".freeze
-      alive = true
     end
     res << (alive ? "Connection: keep-alive\r\n\r\n".freeze
                   : "Connection: close\r\n\r\n".freeze)