summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorPaulo Schneider <paulo.schneider@gmail.com>2016-02-20 09:34:56 +0000
committerPaulo Schneider <paulo.schneider@gmail.com>2016-02-20 09:45:33 +0000
commitb97115679929dfe4f69618f756850617f265048f (patch)
treead86cf17872d8d692e40575b2bb788bf332f5b88 /service
parent0b2461a655684c6d706d30a081350e59601eab33 (diff)
Rename class to match intent
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/config/site.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/config/site.py b/service/pixelated/config/site.py
index 6a29c478..7163b52b 100644
--- a/service/pixelated/config/site.py
+++ b/service/pixelated/config/site.py
@@ -1,7 +1,7 @@
from twisted.web.server import Site, Request
-class AddCSPHeaderRequest(Request):
+class AddSecurityHeadersRequest(Request):
CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'"
def process(self):
@@ -20,11 +20,11 @@ class AddCSPHeaderRequest(Request):
class PixelatedSite(Site):
- requestFactory = AddCSPHeaderRequest
+ requestFactory = AddSecurityHeadersRequest
@classmethod
def enable_csp_requests(cls):
- cls.requestFactory = AddCSPHeaderRequest
+ cls.requestFactory = AddSecurityHeadersRequest
@classmethod
def disable_csp_requests(cls):