From 72764ceeaf537cce45d900187bf8643663fc530d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Jul 2009 01:17:10 -0700 Subject: http_request: don't support apps that close env["rack.input"] 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. --- lib/unicorn/http_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-24-ge0c7