Show More
@@ -410,15 +410,15 b' class hgwebdir:' | |||
|
410 | 410 | gc.collect(generation=1) |
|
411 | 411 | |
|
412 | 412 | def _runwsgi(self, req, res): |
|
413 | try: | |
|
414 | self.refresh() | |
|
413 | self.refresh() | |
|
415 | 414 | |
|
416 |
|
|
|
417 |
|
|
|
418 |
|
|
|
415 | csp, nonce = cspvalues(self.ui) | |
|
416 | if csp: | |
|
417 | res.headers[b'Content-Security-Policy'] = csp | |
|
419 | 418 | |
|
420 |
|
|
|
421 |
|
|
|
419 | virtual = req.dispatchpath.strip(b'/') | |
|
420 | tmpl = self.templater(req, nonce) | |
|
421 | try: | |
|
422 | 422 | ctype = tmpl.render(b'mimetype', {b'encoding': encoding.encoding}) |
|
423 | 423 | |
|
424 | 424 | # Global defaults. These can be overridden by any handler. |
General Comments 0
You need to be logged in to leave comments.
Login now