about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-11-11 20:22:22 +0000
committerEric Wong <e@80x24.org>2016-11-11 20:22:25 +0000
commit11b0ed968dc005c9c291b82d672e648b5243af08 (patch)
treefe533bbdea680d4d773f6e1daf7d69a64ac5d56c
parent08cea89483e90c79daa2c8efe70da6bdeba71147 (diff)
downloadyahns-11b0ed968dc005c9c291b82d672e648b5243af08.tar.gz
Introduced in commit 08cea89483e90c79daa2c8efe70da6bdeba71147
('response: only stream "file" responses on known length')
-rw-r--r--lib/yahns/http_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/http_response.rb b/lib/yahns/http_response.rb
index ca28bbf..e2fc940 100644
--- a/lib/yahns/http_response.rb
+++ b/lib/yahns/http_response.rb
@@ -125,7 +125,7 @@ module Yahns::HttpResponse # :nodoc:
   def http_response_write(res, opt)
     status, headers, body = res
     offset = 0
-    count = hijack = nil
+    count = hijack = clen = nil
     alive = @hs.next? && self.class.persistent_connections
     flags = MSG_DONTWAIT
     term = false