mercurial/hgweb/request.py
changeset 37049 55e901396005
parent 36997 44467a4d472f
child 37589 e320d9405bba
--- a/mercurial/hgweb/request.py	Tue Mar 13 11:57:43 2018 -0700
+++ b/mercurial/hgweb/request.py	Tue Mar 13 14:15:10 2018 -0700
@@ -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']))