From 7202fb7e5e5250cf26f4b687a13f959b0513e7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 28 Aug 2025 14:33:12 +0200 Subject: [PATCH] zmiany w endpoincie /uploads/ --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 25abc8a..f5c7b3b 100644 --- a/app.py +++ b/app.py @@ -106,7 +106,6 @@ if effective_headers: talisman = Talisman( app, - vary=False, session_cookie_secure=app.config.get("SESSION_COOKIE_SECURE", True), **talisman_kwargs, ) @@ -2143,7 +2142,7 @@ def uploaded_file(filename): response.headers["Cache-Control"] = app.config["UPLOADS_CACHE_CONTROL"] response.headers.pop("Pragma", None) response.headers.pop("Content-Disposition", None) - response.headers["Vary"] = "Accept-Encoding" + response.headers.pop("Vary", None) mime, _ = mimetypes.guess_type(filename) if mime: response.headers["Content-Type"] = mime