equal
deleted
inserted
replaced
318 |
318 |
319 def _runwsgi(self, req, repo): |
319 def _runwsgi(self, req, repo): |
320 rctx = requestcontext(self, repo) |
320 rctx = requestcontext(self, repo) |
321 |
321 |
322 # This state is global across all threads. |
322 # This state is global across all threads. |
323 encoding.encoding = rctx.config('web', 'encoding', encoding.encoding) |
323 encoding.encoding = rctx.config('web', 'encoding') |
324 rctx.repo.ui.environ = req.env |
324 rctx.repo.ui.environ = req.env |
325 |
325 |
326 if rctx.csp: |
326 if rctx.csp: |
327 # hgwebdir may have added CSP header. Since we generate our own, |
327 # hgwebdir may have added CSP header. Since we generate our own, |
328 # replace it. |
328 # replace it. |