Commit 47b7916e authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: do not add CONTENT_TYPE to the environ dict when there's no...

pywsgi: do not add CONTENT_TYPE to the environ dict when there's no Content-Type header in the request
parent 0665e104
...@@ -447,9 +447,7 @@ class WSGIHandler(object): ...@@ -447,9 +447,7 @@ class WSGIHandler(object):
env['PATH_INFO'] = unquote(path) env['PATH_INFO'] = unquote(path)
env['QUERY_STRING'] = query env['QUERY_STRING'] = query
if self.headers.typeheader is None: if self.headers.typeheader is not None:
env['CONTENT_TYPE'] = self.headers.type
else:
env['CONTENT_TYPE'] = self.headers.typeheader env['CONTENT_TYPE'] = self.headers.typeheader
length = self.headers.getheader('content-length') length = self.headers.getheader('content-length')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment