Commit 669fb2e2 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

--HG--
extra : transplant_source : .%D0%88%AFL4%E5uZ%15%09%9FF%A5%E2T/U%A2%E5
parent a25aa76a
...@@ -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