mirror of
https://github.com/kennethreitz/flask-sslify.git
synced 2026-06-05 23:00:19 +00:00
Fixed.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user