about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-10 21:55:38 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-10 21:55:38 -0700
commit7451ef8159decc95245fe193e04bcf3d433095a3 (patch)
tree49e208f3d4bc0473b0bf008116d83f199ac13b1e /lib
parent76ec094b15c24bf6fb05155330d83f5bdd71c8e5 (diff)
downloadunicorn-7451ef8159decc95245fe193e04bcf3d433095a3.tar.gz
This method is strictly a filter, it does no I/O so "read"
is not an appropriate name to give it.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/tee_input.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb
index 07676a6..9f56860 100644
--- a/lib/unicorn/tee_input.rb
+++ b/lib/unicorn/tee_input.rb
@@ -26,7 +26,7 @@ module Unicorn
       return(@input = nil) if 0 == @size
       @input = socket
       if RAW.size > 0
-        PARSER.read_body(DST, RAW) and finalize_input
+        PARSER.filter_body(DST, RAW) and finalize_input
         @tmp.write(DST)
         @tmp.seek(0)
       end
@@ -117,7 +117,7 @@ module Unicorn
     def tee(length, buf)
       unless PARSER.body_eof?
         begin
-          if PARSER.read_body(buf, @input.readpartial(length, RAW)).nil?
+          if PARSER.filter_body(buf, @input.readpartial(length, RAW)).nil?
             @tmp.write(buf)
             return buf
           end