diff mercurial/hgweb/hgwebdir_mod.py @ 36908:cd6ae9ab7bd8

hgweb: remove dead wsgirequest code All responses now go through our modern response type. All code related to response handling can be deleted. Differential Revision: https://phab.mercurial-scm.org/D2830
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 11 Mar 2018 15:55:38 -0700
parents c1de7efca574
children f0a851542a05
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Mar 11 15:40:58 2018 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Mar 11 15:55:38 2018 -0700
@@ -367,7 +367,6 @@
             csp, nonce = cspvalues(self.ui)
             if csp:
                 res.headers['Content-Security-Policy'] = csp
-                wsgireq.headers.append(('Content-Security-Policy', csp))
 
             virtual = req.dispatchpath.strip('/')
             tmpl = self.templater(req, nonce)