mirror of
https://github.com/kennethreitz/flask-sslify.git
synced 2026-06-05 23:00:19 +00:00
Skips can’t be a string.
This commit is contained in:
+1
-4
@@ -38,10 +38,7 @@ class SSLify(object):
|
||||
def skip(self):
|
||||
"""Checks the skip list."""
|
||||
# Should we skip?
|
||||
if self.skip_list:
|
||||
if isinstance(self.skip_list, basestring):
|
||||
if request.path.startswith('/' + skip):
|
||||
return True
|
||||
if self.skip_list and not isinstance(self.skip_list, basestring):
|
||||
for skip in self.skip_list:
|
||||
if request.path.startswith('/' + skip):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user