diff mercurial/hgweb/hgweb_mod.py @ 34246: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
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Fri Jun 30 03:45:43 2017 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Jun 30 03:45:44 2017 +0200
@@ -320,7 +320,7 @@
         rctx = requestcontext(self, repo)
 
         # This state is global across all threads.
-        encoding.encoding = rctx.config('web', 'encoding', encoding.encoding)
+        encoding.encoding = rctx.config('web', 'encoding')
         rctx.repo.ui.environ = req.env
 
         if rctx.csp: