diff --git a/README.rst b/README.rst index a2b8e10..d85b272 100644 --- a/README.rst +++ b/README.rst @@ -70,12 +70,6 @@ You can exlude a path that starts with given string by including a list called ` Or by including ``SSL_SKIPS`` in your app's config. -Turn-off Redirects Completely ------------------------------- -Flask-SSLify won't run if ``DEBUG`` is ``True``, but you can also turn-off redirects completely by setting -``SSL_NO_REDIRECTS`` in your app's config which might be useful for things like testing, etc. - - Install ------- diff --git a/flask_sslify.py b/flask_sslify.py index 8e965f8..57c6e6b 100644 --- a/flask_sslify.py +++ b/flask_sslify.py @@ -9,7 +9,7 @@ class SSLify(object): """Secures your Flask App.""" def __init__(self, app, age=YEAR_IN_SECS, subdomains=False, permanent=False, skips=None): - if app is not None and not app.config.get('SSL_NO_REDIRECTS'): + if app is not None: self.app = app self.hsts_age = age self.hsts_include_subdomains = subdomains or app.config.get('SSL_SUBDOMAINS')