diff options
Diffstat (limited to 'lib/unicorn/tee_input.rb')
-rw-r--r-- | lib/unicorn/tee_input.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index 3d19d7e..8dd8954 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -21,7 +21,10 @@ module Unicorn @tmp.binmode @tmp.sync = true - @tmp.write(body) if body + if body + @tmp.write(body) + @tmp.seek(0) + end @input = input @size = size # nil if chunked end |