about summary refs log tree commit homepage
path: root/lib/kcar/response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kcar/response.rb')
-rw-r--r--lib/kcar/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kcar/response.rb b/lib/kcar/response.rb
index 38d35ac..265c98a 100644
--- a/lib/kcar/response.rb
+++ b/lib/kcar/response.rb
@@ -141,7 +141,7 @@ class Response < Struct.new(:sock, :hdr, :unchunk, :buf, :parser)
         yield dst
       end
       while len > 0
-        len -= sock.readpartial(len > READ_SIZE ? CHUNK_SIZE : len, dst).size
+        len -= sock.readpartial(len > READ_SIZE ? READ_SIZE : len, dst).size
         yield dst
       end
     end