##// END OF EJS Templates
hgweb: replace PATH_INFO with dispatchpath...
Gregory Szorc -
r36919:803e0fc0 default
parent child Browse files
Show More
@@ -369,7 +369,7 b' class hgwebdir(object):'
369 369 res.headers['Content-Security-Policy'] = csp
370 370 wsgireq.headers.append(('Content-Security-Policy', csp))
371 371
372 virtual = wsgireq.env.get("PATH_INFO", "").strip('/')
372 virtual = req.dispatchpath.strip('/')
373 373 tmpl = self.templater(wsgireq, nonce)
374 374 ctype = tmpl('mimetype', encoding=encoding.encoding)
375 375 ctype = templater.stringify(ctype)
General Comments 0
You need to be logged in to leave comments. Login now