mercurial/hgweb/hgweb_mod.py
changeset 36856 1f7d9024674c
parent 36814 f9078c6caeb6
child 36861 a88d68dc3ee8
equal deleted inserted replaced
36855:2cdf47e14c30 36856:1f7d9024674c
   302             with profiling.profile(repo.ui, enabled=profile):
   302             with profiling.profile(repo.ui, enabled=profile):
   303                 for r in self._runwsgi(wsgireq, repo):
   303                 for r in self._runwsgi(wsgireq, repo):
   304                     yield r
   304                     yield r
   305 
   305 
   306     def _runwsgi(self, wsgireq, repo):
   306     def _runwsgi(self, wsgireq, repo):
   307         req = requestmod.parserequestfromenv(wsgireq.env)
   307         req = wsgireq.req
   308         rctx = requestcontext(self, repo)
   308         rctx = requestcontext(self, repo)
   309 
   309 
   310         # This state is global across all threads.
   310         # This state is global across all threads.
   311         encoding.encoding = rctx.config('web', 'encoding')
   311         encoding.encoding = rctx.config('web', 'encoding')
   312         rctx.repo.ui.environ = wsgireq.env
   312         rctx.repo.ui.environ = wsgireq.env