summaryrefslogtreecommitdiff
path: root/service/test/unit/config
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-04 11:25:11 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-04 11:31:53 -0300
commitd044a34e9b5a0c341581daae03ba40fc72005170 (patch)
tree5d33421a471020698a579467d5483b96307ebaef /service/test/unit/config
parent8c6a2155fd35180307eae39ae7c51ab56ab0efc2 (diff)
#304 Include CSP header support to more browsers
Diffstat (limited to 'service/test/unit/config')
-rw-r--r--service/test/unit/config/test_site.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/unit/config/test_site.py b/service/test/unit/config/test_site.py
index 77d42ed8..1858bfaf 100644
--- a/service/test/unit/config/test_site.py
+++ b/service/test/unit/config/test_site.py
@@ -9,7 +9,11 @@ class TestPixelatedSite(unittest.TestCase):
request = self.create_request()
request.process()
headers = request.headers
- self.assertEqual(headers.get("Content-Security-Policy"), "default-src 'self'; style-src 'self' 'unsafe-inline'")
+
+ header_value = "default-src 'self'; style-src 'self' 'unsafe-inline'"
+ self.assertEqual(headers.get("Content-Security-Policy"), header_value)
+ self.assertEqual(headers.get("X-Content-Security-Policy"), header_value)
+ self.assertEqual(headers.get("X-Webkit-CSP"), header_value)
def create_request(self):
channel = LineReceiver()