##// END OF EJS Templates
hgweb: store the raw WSGI environment dict...
Gregory Szorc -
r36925:84110a1d default
parent child Browse files
Show More
@@ -312,7 +312,7 b' class hgweb(object):'
312 312
313 313 # This state is global across all threads.
314 314 encoding.encoding = rctx.config('web', 'encoding')
315 rctx.repo.ui.environ = wsgireq.env
315 rctx.repo.ui.environ = req.rawenv
316 316
317 317 if rctx.csp:
318 318 # hgwebdir may have added CSP header. Since we generate our own,
@@ -149,6 +149,8 b' class parsedrequest(object):'
149 149 headers = attr.ib()
150 150 # Request body input stream.
151 151 bodyfh = attr.ib()
152 # WSGI environment dict, unmodified.
153 rawenv = attr.ib()
152 154
153 155 def parserequestfromenv(env, bodyfh, reponame=None, altbaseurl=None):
154 156 """Parse URL components from environment variables.
@@ -342,7 +344,8 b' def parserequestfromenv(env, bodyfh, rep'
342 344 querystring=querystring,
343 345 qsparams=qsparams,
344 346 headers=headers,
345 bodyfh=bodyfh)
347 bodyfh=bodyfh,
348 rawenv=env)
346 349
347 350 class offsettrackingwriter(object):
348 351 """A file object like object that is append only and tracks write count.
General Comments 0
You need to be logged in to leave comments. Login now