diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-25 16:37:01 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-25 16:37:01 -0700 |
commit | 1574d8ce531d79fc905be2f319fa703fb0710e96 (patch) | |
tree | 86445667a9e41e7f44d3c5369bcbccb699a2a61f /lib/unicorn/tee_input.rb | |
parent | 4651cd8b7c10d18bc745b84ebc7a55aad07d6077 (diff) | |
download | unicorn-1574d8ce531d79fc905be2f319fa703fb0710e96.tar.gz |
Pay a performance penalty and always proxy reads through our TeeInput object to ensure nobody closes our internal reader.
Diffstat (limited to 'lib/unicorn/tee_input.rb')
-rw-r--r-- | lib/unicorn/tee_input.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |