diff options
-rw-r--r-- | lib/yahns/proxy_pass.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index 7bbab51..15c9f53 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -149,8 +149,10 @@ class Yahns::ProxyPass # :nodoc: end def close_req_body(input) + # we cannot use respond_to?(:close) here since Rack::Lint::InputWrapper + # tries to prevent that (and hijack means all Rack specs go out the door) case input - when Yahns::TeeInput, IO, StringIO + when Yahns::TeeInput, IO input.close end end |