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

Antoine Pitrou report at bugs.python.org
Thu Jan 6 16:40:34 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Haypo: I believe that the consensus we've come to is that you
> shouldn't have to.  FieldStorage should take a binary stream.  So
> should cgi.parse.  If defaulting to sys.stdin, then if stdin is text,
> they should turn it in to a binary stream right at the start.

Is mutating sys.stdin really a good idea? Or am I misunderstand your
proposal?

----------

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


More information about the Python-bugs-list mailing list