http_response: don't "rescue nil" for body.close
commitb778740240e6dbeeaf1c4cf604865170e7cb454c
authorEric Wong <normalperson@yhbt.net>
Tue, 10 Nov 2009 19:30:30 +0000 (10 11:30 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 10 Nov 2009 19:31:10 +0000 (10 11:31 -0800)
tree1cccfb182053d841c8fdc81c8cbb53c19352f380
parenta7ac8393ea6a1767ba07f95e8932d06a9f9db398
http_response: don't "rescue nil" for body.close

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.
lib/rainbows/http_response.rb