From 1574d8ce531d79fc905be2f319fa703fb0710e96 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 25 Jun 2009 16:37:01 -0700 Subject: tee_input: Don't expose the @rd object as a return value Pay a performance penalty and always proxy reads through our TeeInput object to ensure nobody closes our internal reader. --- lib/unicorn/tee_input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index 9c4dda2..1e7afef 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -49,7 +49,7 @@ module Unicorn buf = Z.dup while tee(Const::CHUNK_SIZE, buf) end - @rd + self end # returns the size of the input. This is what the Content-Length -- cgit v1.2.3-24-ge0c7