Update flask_sslify.py

This commit is contained in:
holdenweb
2012-04-29 16:21:08 -07:00
parent 34de40388b
commit e91646bc32
+2 -1
View File
@@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-
YEAR_IN_SECS = 31536000
from flask import request, redirect
class SSLify(object):
"""Secures your Flask App."""
def __init__(self, app, age=31536000, subdomains=False):
def __init__(self, app, age=YEAR_IN_SECS, subdomains=False):
if app is not None:
self.app = app
self.hsts_age = age