about summary refs log tree commit homepage
path: root/lib/rainbows/rev/thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/thread.rb')
-rw-r--r--lib/rainbows/rev/thread.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows/rev/thread.rb b/lib/rainbows/rev/thread.rb
index 8fc7172..2dbaa84 100644
--- a/lib/rainbows/rev/thread.rb
+++ b/lib/rainbows/rev/thread.rb
@@ -22,9 +22,8 @@ module Rainbows
       def response_write(response)
         enable
         alive = @hp.keepalive? && G.alive
-        out = [ alive ? CONN_ALIVE : CONN_CLOSE ] if @hp.headers?
-        rev_write_response(response, out)
-        return quit unless alive && G.alive
+        rev_write_response(response, alive)
+        return quit unless alive
 
         @env.clear
         @hp.reset