mirror of
https://github.com/kennethreitz/flask-sslify.git
synced 2026-06-05 23:00:19 +00:00
Have skip return False by default.
This commit is contained in:
@@ -40,6 +40,7 @@ class SSLify(object):
|
||||
for skip in self.skip_list:
|
||||
if request.path.startswith('/{0}'.format(skip)):
|
||||
return True
|
||||
return False
|
||||
|
||||
def redirect_to_ssl(self):
|
||||
"""Redirect incoming requests to HTTPS."""
|
||||
|
||||
Reference in New Issue
Block a user