Matthias Urlichs added the comment:
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:
----------
nosy: +smurfix
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20504>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com