[issue32029] cgi: TypeError when no argument string is found

2017-11-14 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your report. This looks like a duplicate of issue 2. You might workaround this by passing ``headers={"Content-Disposition": "inline"}`` to cgi.FieldStorage() (untested) -- nosy: +berker.peksag resolution: ->

[issue32029] cgi: TypeError when no argument string is found

2017-11-14 Thread Sebastian Rittau
Change by Sebastian Rittau : -- components: +Library (Lib) title: cgi: TypeError -> cgi: TypeError when no argument string is found ___ Python tracker

[issue32029] cgi: TypeError

2017-11-14 Thread Sebastian Rittau
New submission from Sebastian Rittau : Consider the following code: import cgi from io import BytesIO cgi.FieldStorage(BytesIO(b"{}"), environ={ "REQUEST_METHOD": "POST", "CONTENT_TYPE": "application/json", "CONTENT_LENGTH": "14", })