diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-03-24 11:20:26 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-03-24 11:20:26 +0000 |
commit | 53d592c4d42c949aca32073e00cedb44f6d90888 (patch) | |
tree | 1ae94d0e4ad9a9a21f2eda7afc3c03e8046b0390 | |
parent | 2a9750af70b4d08f5e4e44482ddeec682ad6ec74 (diff) |
url plugin: when reading body chunks, don't discard read material
-rw-r--r-- | data/rbot/plugins/url.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |