diff options
-rw-r--r-- | lib/rainbows/revactor/tee_input.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/revactor/tee_input.rb b/lib/rainbows/revactor/tee_input.rb index 8fb4551..99d1f7d 100644 --- a/lib/rainbows/revactor/tee_input.rb +++ b/lib/rainbows/revactor/tee_input.rb @@ -22,11 +22,11 @@ module Rainbows 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 |