Skip to content

Commit

Permalink
Issue webcompat#1329. Fix invalid STS header syntax (missing semicolo…
Browse files Browse the repository at this point in the history
…n). r=me
  • Loading branch information
Mike Taylor authored and jeanhl committed Mar 10, 2017
1 parent d882299 commit cd5ab98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcompat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def add_sec_headers(response):
This should be used in @app.after_request to ensure the headers are
added to all responses.'''
if not app.config['LOCALHOST']:
response.headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains' # nopep8
response.headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains;' # nopep8
response.headers['X-Content-Type-Options'] = 'nosniff'
response.headers['X-XSS-Protection'] = '1; mode=block'
response.headers['X-Frame-Options'] = 'DENY'
Expand Down

0 comments on commit cd5ab98

Please sign in to comment.