summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-16 01:17:10 -0700
committerEric Wong <normalperson@yhbt.net>2009-07-16 01:17:10 -0700
commit72764ceeaf537cce45d900187bf8643663fc530d (patch)
tree24686860b0723420212790504dd0a35ba0e06bb7
parent2e913054b36848a05f7ba06c3accbe164c666708 (diff)
Anything that calls close on a rack.input body is violating
Rack::Lint; so don't waste cycles supporting them.  Being
liberal in things we accept tolerates bad behavior and Unicorn
doesn't have a large userbase that would scream bloody murder if
we stopped supporting broken behavior.
-rw-r--r--lib/unicorn/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index f4cc77c..a9e9d23 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -90,7 +90,7 @@ module Unicorn
 
         TeeInput.new(socket, length, body)
       else
-        NULL_IO.closed? ? NULL_IO.reopen(Z) : NULL_IO
+        NULL_IO
       end
 
       PARAMS.update(DEFAULTS)