Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 34239:344fd1fe237b
configitems: register the 'web.encoding' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:45:44 +0200 |
parents | c8f212cb0c83 |
children | 945c9816ec1d |
comparison
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. |