From: Giuseppe Bilotta Date: Sat, 24 Mar 2007 11:20:26 +0000 (+0000) Subject: url plugin: when reading body chunks, don't discard read material X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=53d592c4d42c949aca32073e00cedb44f6d90888;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git url plugin: when reading body chunks, don't discard read material --- diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index e55999ee..84ee7e43 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -40,10 +40,10 @@ class UrlPlugin < Plugin amount_read += chunk.length - if amount_read > amount - amount_of_overflow = amount_read - amount - chunk = chunk[0...-amount_of_overflow] - end + # if amount_read > amount + # amount_of_overflow = amount_read - amount + # chunk = chunk[0...-amount_of_overflow] + # end chunks << chunk