This commit is contained in:
Michael Tofias
2015-03-31 12:31:55 -05:00
parent d8d9434074
commit 1f7a79f1e0
+1 -1
View File
@@ -8,7 +8,7 @@ YEAR_IN_SECS = 31536000
class SSLify(object):
"""Secures your Flask App."""
def __init__(self, app, age=YEAR_IN_SECS, subdomains=False, permanent=False, skips=None):
def __init__(self, app=None, age=YEAR_IN_SECS, subdomains=False, permanent=False, skips=None):
if app is not None:
self.init_app(app)
self.app = app