[issue32541] cgi.FieldStorage constructor assumes all lines terminate with \n

2018-01-12 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue32541] cgi.FieldStorage constructor assumes all lines terminate with \n

2018-01-12 Thread Ned Deily
Ned Deily added the comment: I'm removing the macOS tag and nosies because I think it highly unlikely that the behavior would be limited to macOS. Without a reproducible test case, it's not easy to verify that or investigate further. The cgi module doesn't get a lot of attention but perhaps

[issue32541] cgi.FieldStorage constructor assumes all lines terminate with \n

2018-01-12 Thread Ian Craggs
New submission from Ian Craggs : Using cgi.FieldStorage in an HTTP server in a subclass of BaseHTTPRequestHandler, parsing the request with: form = cgi.FieldStorage(fp=self.rfile, headers=self.headers, environ={"REQUEST_METHOD":op.upper(),