Merge pull request #2 from holdenweb/patch-1

Update flask_sslify.py
This commit is contained in:
Kenneth Reitz
2012-04-29 16:22:26 -07:00
+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