Skip to content

Commit

Permalink
SSLIFY_XXX for config
Browse files Browse the repository at this point in the history
  • Loading branch information
tofias committed Mar 31, 2015
1 parent 7ba2684 commit d028fd3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flask_sslify.py
Expand Up @@ -12,13 +12,13 @@ def __init__(self, app=None, age=YEAR_IN_SECS, subdomains=False, permanent=False
self.app = app or current_app
self.hsts_age = age

self.app.config.setdefault('SSL_SUBDOMAINS', False)
self.app.config.setdefault('SSL_PERMANENT', False)
self.app.config.setdefault('SSL_SKIPS', None)
self.app.config.setdefault('SSLIFY_SUBDOMAINS', False)
self.app.config.setdefault('SSLIFY_PERMANENT', False)
self.app.config.setdefault('SSLIFY_SKIPS', None)

self.hsts_include_subdomains = subdomains or self.app.config['SSL_SUBDOMAINS']
self.permanent = permanent or self.app.config['SSL_PERMANENT']
self.skip_list = skips or self.app.config['SSL_SKIPS']
self.hsts_include_subdomains = subdomains or self.app.config['SSLIFY_SUBDOMAINS']
self.permanent = permanent or self.app.config['SSLIFY_PERMANENT']
self.skip_list = skips or self.app.config['SSLIFY_SKIPS']

if app is not None:
self.init_app(app)
Expand Down

0 comments on commit d028fd3

Please sign in to comment.