mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-14 17:59:29 +02:00
Fixed bug in handling of pages less than maxSize but with no Content-length header.
This commit is contained in:
parent
39ab2b78bf
commit
b2f98258a6
@ -120,7 +120,7 @@ class Http(callbacks.Privmsg):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
s = fd.read(self.maxSize)
|
s = fd.read(self.maxSize)
|
||||||
if len(s) != 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:
|
else:
|
||||||
irc.reply(msg, 'The server didn\'t tell me how long %s is '
|
irc.reply(msg, 'The server didn\'t tell me how long %s is '
|
||||||
'but it\'s longer than %s bytes.' %
|
'but it\'s longer than %s bytes.' %
|
||||||
|
Loading…
Reference in New Issue
Block a user