lib/rainbows/revactor/tee_input.rb in rainbows-0.90.2 vs lib/rainbows/revactor/tee_input.rb in rainbows-0.91.0
- old
+ new
@@ -20,14 +20,14 @@
# backing store as well as returning it. +dst+ must be specified.
# returns nil if reading from the input returns nil
def tee(length, dst)
unless parser.body_eof?
if parser.filter_body(dst, buf << socket.read).nil?
- @tmp.write(dst)
+ tmp.write(dst)
diff = dst.size - length
if diff > 0
dst.replace(dst[0,length])
- @tmp.seek(-diff, IO::SEEK_CUR)
+ tmp.seek(-diff, IO::SEEK_CUR)
end
return dst
end
end
finalize_input