about summary refs log tree commit homepage
path: root/lib/yahns/http_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/http_response.rb')
-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 aad2762..8967670 100644
--- a/lib/yahns/http_response.rb
+++ b/lib/yahns/http_response.rb
@@ -64,7 +64,7 @@ module Yahns::HttpResponse # :nodoc:
   end
 
   def http_response_done(alive)
-    @input = @input.discard if @input
+    @input = @input.close if @input
     if alive
       @response_start_sent = false
       # @hs.buf will have data if the client pipelined