We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3363d5a commit 47d1606Copy full SHA for 47d1606
api.py
@@ -28,7 +28,7 @@ def create_app(config_filename=None):
28
if env.get("TRUSTED_PROXY_COUNT"):
29
# for example if the request goes through one proxy
30
# before hitting your application server
31
- app.wsgi_app = ProxyFix(app.wsgi_app, x_for=env.get("TRUSTED_PROXY_COUNT"))
+ app.wsgi_app = ProxyFix(app.wsgi_app, x_for=int(env.get("TRUSTED_PROXY_COUNT") or 0))
32
33
if config_filename:
34
app.config.from_pyfile(config_filename)
0 commit comments