This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author smurfix
Recipients smurfix, srittau
Date 2014-06-10.10:17:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Actually, the problem is around line 550:

        clen = -1
        if 'content-length' in self.headers:
                clen = int(self.headers['content-length'])
            except ValueError:
            if maxlen and clen > maxlen:
                raise ValueError('Maximum content length exceeded')
        self.length = clen
        if self.limit is None and clen:
            self.limit = clen

… so self.limit ends up being -1 instead of None. :-/

Somebody please change this test to

        if self.limit is None and clen >= 0:
Date User Action Args
2014-06-10 10:17:42smurfixsetrecipients: + smurfix, srittau
2014-06-10 10:17:42smurfixsetmessageid: <>
2014-06-10 10:17:42smurfixlinkissue20504 messages
2014-06-10 10:17:41smurfixcreate