Fix trailing slash 404

This commit is contained in:
Minecon724 2025-04-04 15:19:13 +02:00
commit a127728603
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

View file

@ -53,6 +53,8 @@ app.config['SESSION_KEY_PREFIX'] = 'anonchat_session:'
app.config['SCHEDULER_API_ENABLED'] = False
app.config['SCHEDULER_TIMEZONE'] = 'UTC'
app.url_map.strict_slashes = False
if app.config['BEHIND_PROXY']:
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=2)