summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/url.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-24 11:20:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-24 11:20:26 +0000
commit53d592c4d42c949aca32073e00cedb44f6d90888 (patch)
tree1ae94d0e4ad9a9a21f2eda7afc3c03e8046b0390 /data/rbot/plugins/url.rb
parent2a9750af70b4d08f5e4e44482ddeec682ad6ec74 (diff)
url plugin: when reading body chunks, don't discard read material
Diffstat (limited to 'data/rbot/plugins/url.rb')
-rw-r--r--data/rbot/plugins/url.rb8
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