diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-18 17:54:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-18 17:54:43 +0000 |
commit | 4b7ffee7c2436b1839146fd124e731a63f20d03e (patch) | |
tree | a036099c5b9b36e71e2fe6482b2059f7f4b5341a /lib/yahns/http_response.rb | |
parent | ec8bb4033257fd36ca93ba746c41abc1bd0175b6 (diff) | |
download | yahns-4b7ffee7c2436b1839146fd124e731a63f20d03e.tar.gz |
Since we are smarter about closing @input, we can just call .close on it as closing inputs is forbidden in Rack apps, anyways. This reduces our class count and should make things easier to follow.
Diffstat (limited to 'lib/yahns/http_response.rb')
-rw-r--r-- | lib/yahns/http_response.rb | 2 |
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 |