From 46442ce8a824b702cf3f40f043ceb56012d77581 Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Wed, 5 Apr 2023 14:31:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20content=20type=20=D0=B2=20media.get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api_methods.py b/api/api_methods.py index 0b628e4..f4bfba7 100755 --- a/api/api_methods.py +++ b/api/api_methods.py @@ -776,7 +776,7 @@ class ApiMedia: try: # Media.get_by_id(access_token.user, m_id) res = HttpResponse(content=s3_get(m.storage_name)) - res.headers["Content-type"] = "image/jpg" + res.headers["Content-type"] = ApiMedia.__ext_to_content_type(m.extension) return res except Exception: traceback.print_exc()