mirror of
https://github.com/not-kennethreitz/flask-sslify.git
synced 2026-06-05 15:00:21 +00:00
Removed another is True.
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ class SSLify(object):
|
||||
request.headers.get('X-Forwarded-Proto', 'http') == 'https'
|
||||
]
|
||||
|
||||
if not any(criteria) and not self.skip is True:
|
||||
if not any(criteria) and not self.skip:
|
||||
if request.url.startswith('http://'):
|
||||
url = request.url.replace('http://', 'https://', 1)
|
||||
code = 302
|
||||
|
||||
Reference in New Issue
Block a user