diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-10 11:30:30 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-10 11:31:10 -0800 |
commit | b778740240e6dbeeaf1c4cf604865170e7cb454c (patch) | |
tree | 1cccfb182053d841c8fdc81c8cbb53c19352f380 /lib/rainbows/http_response.rb | |
parent | a7ac8393ea6a1767ba07f95e8932d06a9f9db398 (diff) | |
download | rainbows-b778740240e6dbeeaf1c4cf604865170e7cb454c.tar.gz |
This can hide bugs in Rack applications/middleware. Most other Rack handlers/servers seem to follow this route as well, so this helps ensure broken things will break loudly and more consistently across all Rack-enabled servers.
Diffstat (limited to 'lib/rainbows/http_response.rb')
-rw-r--r-- | lib/rainbows/http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/http_response.rb b/lib/rainbows/http_response.rb index 6617666..39ebd32 100644 --- a/lib/rainbows/http_response.rb +++ b/lib/rainbows/http_response.rb @@ -30,7 +30,7 @@ module Rainbows body.each { |chunk| socket.write(chunk) } ensure - body.respond_to?(:close) and body.close rescue nil + body.respond_to?(:close) and body.close end end end |