changeset 36909 | 803e0fc0cc9a |
parent 36908 | e473a032f38a |
child 36910 | 092ab4ba7ee5 |
--- a/mercurial/hgweb/hgwebdir_mod.py Sun Mar 11 15:15:02 2018 -0700 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Mar 11 15:18:29 2018 -0700 @@ -369,7 +369,7 @@ res.headers['Content-Security-Policy'] = csp wsgireq.headers.append(('Content-Security-Policy', csp)) - virtual = wsgireq.env.get("PATH_INFO", "").strip('/') + virtual = req.dispatchpath.strip('/') tmpl = self.templater(wsgireq, nonce) ctype = tmpl('mimetype', encoding=encoding.encoding) ctype = templater.stringify(ctype)