[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition
Chris Eykamp
report at bugs.python.org
Wed Jun 13 05:06:36 EDT 2018
Chris Eykamp <chris at eykamp.com> added the comment:
This also manifests itself when using web.py: if the underlying code throws an exception, this is emitted:
File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 364, in input
out = rawinput(_method)
File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 341, in rawinput
a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1)
File "/usr/lib/python3.5/cgi.py", line 561, in __init__
self.read_single()
File "/usr/lib/python3.5/cgi.py", line 740, in read_single
self.read_binary()
File "/usr/lib/python3.5/cgi.py", line 762, in read_binary
self.file.write(data)
TypeError: write() argument must be str, not bytes
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27777>
_______________________________________
More information about the Python-bugs-list
mailing list