zopefoundation / zope.publisher

Map requests from HTTP/WebDAV clients, web browsers, XML-RPC and FTP clients onto Python objects
Other
3 stars 13 forks source link

Handle empty Content-Type environment variable gracefully #64

Closed sjustas closed 3 years ago

sjustas commented 3 years ago

Related to PR in multipart https://github.com/defnull/multipart/pull/35

The empty CONTENT_LENGTH header variable can be added by a webserver like nginx. Empty string is valid as WSGI env variable (PEP0333), not so much as HTTP env variable (RFC2616).

icemac commented 3 years ago

Having an additional test for this issue would be nice.