Skip to content

Commit

Permalink
Merge pull request #443 from MITLibraries/flask-talisman
Browse files Browse the repository at this point in the history
Replace flask-sslify with flask-talisman
  • Loading branch information
hakbailey committed Mar 24, 2022
2 parents 8eeccb9 + 3881b41 commit 0942b81
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Expand Up @@ -7,12 +7,12 @@ name = "pypi"
boto3 = "*"
botocore = "*"
flask = "*"
flask-sslify = "*"
gunicorn = "*"
python3-saml = "*"
pyyaml = "*"
requests = "*"
sentry-sdk = {extras = ["flask"],version = "*"}
flask-talisman = "*"

[dev-packages]
coverage = "*"
Expand Down
25 changes: 13 additions & 12 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ebooks/__init__.py
@@ -1,7 +1,7 @@
import os

from flask import Flask
from flask_sslify import SSLify
from flask_talisman import Talisman
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration

Expand All @@ -26,6 +26,6 @@ def create_app():
app.register_blueprint(auth.bp)
app.register_blueprint(item.bp)

SSLify(app, permanent=True)
Talisman(app)

return app

0 comments on commit 0942b81

Please sign in to comment.