mercurial/hgweb/hgweb_mod.py
changeset 34239 344fd1fe237b
parent 33328 c8f212cb0c83
child 34245 945c9816ec1d
equal deleted inserted replaced
34238:a6c18628dff1 34239:344fd1fe237b
   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.