##// END OF EJS Templates
hgweb: also set Content-Type header...
Gregory Szorc -
r37067:55e90139 default
parent child Browse files
Show More
@@ -298,6 +298,9 b' def parserequestfromenv(env, reponame=No'
298 if 'CONTENT_LENGTH' in env and 'HTTP_CONTENT_LENGTH' not in env:
298 if 'CONTENT_LENGTH' in env and 'HTTP_CONTENT_LENGTH' not in env:
299 headers['Content-Length'] = env['CONTENT_LENGTH']
299 headers['Content-Length'] = env['CONTENT_LENGTH']
300
300
301 if 'CONTENT_TYPE' in env and 'HTTP_CONTENT_TYPE' not in env:
302 headers['Content-Type'] = env['CONTENT_TYPE']
303
301 bodyfh = env['wsgi.input']
304 bodyfh = env['wsgi.input']
302 if 'Content-Length' in headers:
305 if 'Content-Length' in headers:
303 bodyfh = util.cappedreader(bodyfh, int(headers['Content-Length']))
306 bodyfh = util.cappedreader(bodyfh, int(headers['Content-Length']))
General Comments 0
You need to be logged in to leave comments. Login now