Show More
@@ -369,7 +369,7 b' class hgwebdir(object):' | |||||
369 | res.headers['Content-Security-Policy'] = csp |
|
369 | res.headers['Content-Security-Policy'] = csp | |
370 | wsgireq.headers.append(('Content-Security-Policy', csp)) |
|
370 | wsgireq.headers.append(('Content-Security-Policy', csp)) | |
371 |
|
371 | |||
372 |
virtual = |
|
372 | virtual = req.dispatchpath.strip('/') | |
373 | tmpl = self.templater(wsgireq, nonce) |
|
373 | tmpl = self.templater(wsgireq, nonce) | |
374 | ctype = tmpl('mimetype', encoding=encoding.encoding) |
|
374 | ctype = tmpl('mimetype', encoding=encoding.encoding) | |
375 | ctype = templater.stringify(ctype) |
|
375 | ctype = templater.stringify(ctype) |
General Comments 0
You need to be logged in to leave comments.
Login now