diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-09 12:46:13 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-09 12:46:13 -0700 |
commit | 0d354a3cb78a8fe08fac8a91e945dcb50db5ca55 (patch) | |
tree | 65557b78459f146518b2baee55d3c16939ff2b36 /lib | |
parent | 84081b4508c51d04a4a9019fcffe0e034b0b2d39 (diff) | |
download | unicorn-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')
-rw-r--r-- | lib/unicorn/http_response.rb | 2 |
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 |