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 7fa804b..58a7148 100644
--- a/lib/kcar/response.rb
+++ b/lib/kcar/response.rb
@@ -141,7 +141,7 @@ class Kcar::Response
           len -= @sock.readpartial(len > READ_SIZE ? READ_SIZE : len, dst).size
           yield dst
         end while len > 0
-        dst.respond_to?(:clear) ? dst.clear : @buf = ""
+        dst.clear
       end
     end
     @parser.body_bytes_left = 0