summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastepy/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pastepy/__init__.py b/pastepy/__init__.py
index 0cc4db6..a3114e1 100644
--- a/pastepy/__init__.py
+++ b/pastepy/__init__.py
@@ -1,7 +1,9 @@
from flask import Flask
+from werkzeug.middleware.proxy_fix import ProxyFix
app = Flask(__name__)
app.config.from_pyfile('pastepy.cfg')
+app.wsgi_app = ProxyFix(app.wsgi_app)
with app.app_context():
from .pastepy import app as pastepy