Submitter | phabricator |
---|---|
Date | March 14, 2018, 1:16 a.m. |
Message ID | <differential-rev-PHID-DREV-4gpapgjpvhvnoldaukte-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/29468/ |
State | Superseded |
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 @@ -325,6 +325,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']))