diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/tee_input.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index 0e937ff..ee3effd 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -43,8 +43,9 @@ class Unicorn::TeeInput < Unicorn::StreamInput # specified +length+ in a loop until it returns +nil+. def size @len and return @len + pos = @bytes_read consume! - @tmp.rewind + @tmp.pos = pos @len = @bytes_read end |