From a351c6b1175937f53fb208fbeaa1d39bf8a2fb72 Mon Sep 17 00:00:00 2001 From: Raphael Lullis Date: Mon, 21 Nov 2022 00:03:21 +0100 Subject: Fix mimetype for JPEG file extensions (#25) --- core/ld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ld.py b/core/ld.py index 59b867c..fff0526 100644 --- a/core/ld.py +++ b/core/ld.py @@ -444,7 +444,7 @@ def media_type_from_filename(filename): if extension == ".png": return "image/png" elif extension in [".jpg", ".jpeg"]: - return "image/png" + return "image/jpeg" elif extension == ".gif": return "image/gif" elif extension == ".apng": -- cgit v1.2.3