From 7dd3c8cb210276b4a41fa4d597dc044a3a72dd39 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 Apr 2012 18:43:30 -0400 Subject: [PATCH] don't set hsts on redirect --- flask_sslify.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flask_sslify.py b/flask_sslify.py index 779c7b6..8b474ba 100644 --- a/flask_sslify.py +++ b/flask_sslify.py @@ -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):