[issue20504] cgi.FieldStorage, multipart, missing Content-Length
Berker Peksag
report at bugs.python.org
Wed Oct 21 13:43:28 EDT 2015
Berker Peksag added the comment:
The attached patch(cgi.patch) doesn't fix the problem for me: cgi-bug.py still fails with a TypeError. Here is a patch with a test to fix the problem.
With issue20504.diff applied:
$ ./python t.py
5
(Only changed the "assert len(fields["my-arg"].file.read()) == 5" line with "print(len(fields["my-arg"].file.read()))")
----------
nosy: +berker.peksag
stage: -> patch review
versions: +Python 3.6 -Python 3.3
Added file: http://bugs.python.org/file40833/issue20504.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20504>
_______________________________________
More information about the Python-bugs-list
mailing list