Update app.py
This commit is contained in:
3
app.py
3
app.py
@@ -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 ---
|
||||
|
||||
Reference in New Issue
Block a user