Skip to content

Commit c61d15e

Browse files
authored
Merge pull request #386 from OperationCode/something-else
Fix ProxyApp implementation
2 parents 944a29c + 3120e5a commit c61d15e

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 = ProxyFix(app, x_for=1, x_host=1)
26+
app.wsgi_app = ProxyFix(app, x_for=1, x_host=1)
2727
limiter = Limiter(
2828
app,
2929
key_func=get_remote_address,

0 commit comments

Comments
 (0)