pep8: fix CSP header line length
parent
3e20788857
commit
b75ff0782d
|
@ -151,7 +151,8 @@ def after_request_func(resp):
|
||||||
if os.getenv('WHOOGLE_CSP', False):
|
if os.getenv('WHOOGLE_CSP', False):
|
||||||
resp.headers['Content-Security-Policy'] = app.config['CSP']
|
resp.headers['Content-Security-Policy'] = app.config['CSP']
|
||||||
if os.environ.get('HTTPS_ONLY', False):
|
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
|
return resp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue