about summary refs log tree commit homepage
path: root/lib/unicorn/http_response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-09 12:46:13 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-09 12:46:13 -0700
commit0d354a3cb78a8fe08fac8a91e945dcb50db5ca55 (patch)
tree65557b78459f146518b2baee55d3c16939ff2b36 /lib/unicorn/http_response.rb
parent84081b4508c51d04a4a9019fcffe0e034b0b2d39 (diff)
downloadunicorn-0d354a3cb78a8fe08fac8a91e945dcb50db5ca55.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/unicorn/http_response.rb')
-rw-r--r--lib/unicorn/http_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb
index e0ff805..0d05b2c 100644
--- a/lib/unicorn/http_response.rb
+++ b/lib/unicorn/http_response.rb
@@ -69,7 +69,7 @@ module Unicorn
       body.each { |chunk| socket.write(chunk) }
       socket.close # flushes and uncorks the socket immediately
       ensure
-        body.respond_to?(:close) and body.close rescue nil
+        body.respond_to?(:close) and body.close
     end
 
   end