Update app.py

This commit is contained in:
gru
2026-02-25 14:55:23 +01:00
parent af9cef7b5b
commit ec67dacbbc

3
app.py
View File

@@ -1570,7 +1570,8 @@ def apply_headers(response):
# --- statyczne pliki (nagłówki z .env) ---
if request.path.startswith(("/static/", "/uploads/")):
response.headers["Vary"] = "Accept-Encoding"
response.headers.pop('Vary', None) # fix bug with backslash
response.headers['Vary'] = 'Accept-Encoding'
return response
# --- healthcheck ---