Comments
Patch
@@ -57,8 +57,8 @@
$ 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]
+ 304 Not Modified
+ content-security-policy: script-src https://example.com/ 'unsafe-inline'
repo page should send CSP by default, include etag w/o nonce
@@ -473,6 +473,7 @@
if k.lower() not in ('date', 'etag', 'expires',
'cache-control',
'content-location',
+ 'content-security-policy',
'vary')}
if badheaders:
raise error.ProgrammingError(