about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-06 11:08:10 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-06 11:08:10 +0000
commit6494d965735fc9eeaffa1c92e30ac0f106bf0df1 (patch)
tree9ad801127ce9f4039180a49dfaee782664c7c117
parent8215605dd182c15f70448035a8f75833351b211b (diff)
downloadkcar-6494d965735fc9eeaffa1c92e30ac0f106bf0df1.tar.gz
Whee!
-rw-r--r--lib/kcar/response.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kcar/response.rb b/lib/kcar/response.rb
index 4764d8b..94e8825 100644
--- a/lib/kcar/response.rb
+++ b/lib/kcar/response.rb
@@ -119,10 +119,10 @@ class Kcar::Response
   def each_until_eof
     yield @buf unless @buf.empty?
     # easy, just read and write everything until EOFError
-    dst = sock.readpartial(READ_SIZE)
+    dst = @sock.readpartial(READ_SIZE)
     begin
       yield dst
-    end while sock.readpartial(READ_SIZE, dst)
+    end while @sock.readpartial(READ_SIZE, dst)
   end
 
   def each_identity
@@ -166,7 +166,7 @@ class Kcar::Response
     # we can't pass trailers to the client since we unchunk
     # the response, so just read them off the socket and
     # stash them in hdr just in case...
-    until parser.headers(@hdr, @buf)
+    until @parser.headers(@hdr, @buf)
       @buf << @sock.readpartial(READ_SIZE, dst)
     end
   end