mirror of
https://github.com/kennethreitz/flask-sslify.git
synced 2026-06-05 23:00:19 +00:00
don't set hsts on redirect
This commit is contained in:
@@ -43,7 +43,6 @@ class SSLify(object):
|
||||
url = request.url.replace('http://', 'https://')
|
||||
r = redirect(url)
|
||||
|
||||
r.headers['Strict-Transport-Security'] = self.hsts_header
|
||||
return r
|
||||
|
||||
def set_hsts_header(self, response):
|
||||
|
||||
Reference in New Issue
Block a user