From b75ff0782db177c0fd738d575352b512c6ea3def Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 29 Nov 2021 15:58:19 -0700 Subject: [PATCH] pep8: fix CSP header line length --- app/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index e8ac9f4..b949f65 100644 --- a/app/routes.py +++ b/app/routes.py @@ -151,7 +151,8 @@ def after_request_func(resp): if os.getenv('WHOOGLE_CSP', False): resp.headers['Content-Security-Policy'] = app.config['CSP'] if os.environ.get('HTTPS_ONLY', False): - resp.headers['Content-Security-Policy'] += 'upgrade-insecure-requests' + resp.headers['Content-Security-Policy'] += \ + 'upgrade-insecure-requests' return resp