about summary refs log tree commit homepage
path: root/lib/unicorn/stream_input.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicorn/stream_input.rb')
-rw-r--r--lib/unicorn/stream_input.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/stream_input.rb b/lib/unicorn/stream_input.rb
index 2c8e40a..ef8997e 100644
--- a/lib/unicorn/stream_input.rb
+++ b/lib/unicorn/stream_input.rb
@@ -60,7 +60,7 @@ class Unicorn::StreamInput
           @rbuf.replace('')
         end
       end
-      rv = nil if rv.empty?
+      rv = nil if rv.empty? && length != 0
     end
     rv
   end