pep8: fix CSP header line length

main
Ben Busby 2021-11-29 15:58:19 -07:00
parent 3e20788857
commit b75ff0782d
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1
1 changed files with 2 additions and 1 deletions

View File

@ -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