From b2f98258a6ab3e3ddf1f9a9fbc86abba93d7981c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 3 Dec 2003 20:47:33 +0000 Subject: [PATCH] Fixed bug in handling of pages less than maxSize but with no Content-length header. --- plugins/Http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Http.py b/plugins/Http.py index e14c9e3a7..6b9ae3245 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -120,7 +120,7 @@ class Http(callbacks.Privmsg): except KeyError: s = fd.read(self.maxSize) if len(s) != self.maxSize: - irc.reply(msg, '%s is %s bytes long.' % (url, size)) + irc.reply(msg, '%s is %s bytes long.' % (url, len(s))) else: irc.reply(msg, 'The server didn\'t tell me how long %s is ' 'but it\'s longer than %s bytes.' %