From ec67dacbbc6e23b509561630fab9e7cb07cc26ea Mon Sep 17 00:00:00 2001 From: gru Date: Wed, 25 Feb 2026 14:55:23 +0100 Subject: [PATCH] Update app.py --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 3c4176e..02c96de 100644 --- a/app.py +++ b/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 ---