diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-24 21:38:40 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-25 00:00:13 +0000 |
commit | 35e3ad8134c39902b502e20d88246be2751767e1 (patch) | |
tree | 43cc58c0e0dfd6163d7573df6c118217ddd3a11b | |
parent | 6224ff57ce2b95cd62ab01316dedcc106e6e4e6b (diff) | |
download | kcar-35e3ad8134c39902b502e20d88246be2751767e1.tar.gz |
Oops :x
-rw-r--r-- | lib/kcar/response.rb | 2 |
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 |