From 591b600b17aebb7d330d834f9a42ab94f7588a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 28 Aug 2025 14:43:42 +0200 Subject: [PATCH] zmiany w endpoincie /uploads/ --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 8001723..262aaaf 100644 --- a/app.py +++ b/app.py @@ -2164,6 +2164,7 @@ def upload_receipt(list_id): def uploaded_file(filename): response = send_from_directory(app.config["UPLOAD_FOLDER"], filename) response.headers["Cache-Control"] = app.config["UPLOADS_CACHE_CONTROL"] + response.headers.pop("Content-Disposition", None) mime, _ = mimetypes.guess_type(filename) if mime: response.headers["Content-Type"] = mime