tests/test-hgweb-csp.t
branchstable
changeset 37826 d105bbb74658
parent 35605 45a816361926
child 37828 3e3acf5d6a07
--- a/tests/test-hgweb-csp.t	Fri Apr 27 14:51:02 2018 -0700
+++ b/tests/test-hgweb-csp.t	Mon Apr 30 17:08:56 2018 -0700
@@ -54,6 +54,12 @@
   200 Script output follows
   content-security-policy: script-src https://example.com/ 'unsafe-inline'
 
+  $ get-with-headers.py --twice --headeronly localhost:$HGPORT repo1/static/style.css content-security-policy
+  200 Script output follows
+  content-security-policy: script-src https://example.com/ 'unsafe-inline'
+  500 Internal Server Error
+  [1]
+
 repo page should send CSP by default, include etag w/o nonce
 
   $ get-with-headers.py --headeronly localhost:$HGPORT repo1 content-security-policy etag