Skip to content

Commit 541736f

Browse files
authored
Merge pull request #387 from aaron-suarez/fix-wsgi-app
Fix ProxyFix implementation
2 parents c61d15e + 2e58487 commit 541736f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
app = Flask(__name__, static_folder='app/static')
2525
if environ['FLASK_ENV'] != 'development':
26-
app.wsgi_app = ProxyFix(app, x_for=1, x_host=1)
26+
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_host=1)
2727
limiter = Limiter(
2828
app,
2929
key_func=get_remote_address,

0 commit comments

Comments
 (0)