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 <1402395462.29.0.534927410269.issue20504@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, the problem is cgi.py around line 550:

        clen = -1
        if 'content-length' in self.headers:
            try:
                clen = int(self.headers['content-length'])
            except ValueError:
                pass
            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:
History
Date User Action Args
2014-06-10 10:17:42smurfixsetrecipients: + smurfix, srittau
2014-06-10 10:17:42smurfixsetmessageid: <1402395462.29.0.534927410269.issue20504@psf.upfronthosting.co.za>
2014-06-10 10:17:42smurfixlinkissue20504 messages
2014-06-10 10:17:41smurfixcreate