Submitter | phabricator |
---|---|
Date | March 21, 2018, 10:19 p.m. |
Message ID | <459352176e47a7999a803a48d28dcf4f@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/29720/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/request.py b/mercurial/hgweb/request.py --- a/mercurial/hgweb/request.py +++ b/mercurial/hgweb/request.py @@ -298,6 +298,9 @@ if 'CONTENT_LENGTH' in env and 'HTTP_CONTENT_LENGTH' not in env: headers['Content-Length'] = env['CONTENT_LENGTH'] + if 'CONTENT_TYPE' in env and 'HTTP_CONTENT_TYPE' not in env: + headers['Content-Type'] = env['CONTENT_TYPE'] + bodyfh = env['wsgi.input'] if 'Content-Length' in headers: bodyfh = util.cappedreader(bodyfh, int(headers['Content-Length']))