[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

Pierre Quentel report at bugs.python.org
Sun Jan 2 22:28:00 CET 2011


Pierre Quentel <pierre.quentel at gmail.com> added the comment:

Here is the correct diff file

I also introduced a test to exit from the loop in read_multi() if the total number of bytes read reaches "content-length". It was necessary for my framework, which uses cgi.FieldStorage to read from the attribute rfile defined in socketserver. Without this patch, the program hangs after receiving the number of bytes specified in content length. I work on a Windows XP PC so it might be related to the bug #427345 handled by server.CGIHTTPRequestHandler.run_cgi()

----------
Added file: http://bugs.python.org/file20235/cgi_diff.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4953>
_______________________________________


More information about the Python-bugs-list mailing list