about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-25 16:37:01 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-25 16:37:01 -0700
commit1574d8ce531d79fc905be2f319fa703fb0710e96 (patch)
tree86445667a9e41e7f44d3c5369bcbccb699a2a61f /lib
parent4651cd8b7c10d18bc745b84ebc7a55aad07d6077 (diff)
downloadunicorn-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')
-rw-r--r--lib/unicorn/tee_input.rb2
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