Fix mimetype for JPEG file extensions (#25)

This commit is contained in:
Raphael Lullis 2022-11-21 00:03:21 +01:00 committed by GitHub
parent 61ce62b026
commit a351c6b117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -444,7 +444,7 @@ def media_type_from_filename(filename):
if extension == ".png": if extension == ".png":
return "image/png" return "image/png"
elif extension in [".jpg", ".jpeg"]: elif extension in [".jpg", ".jpeg"]:
return "image/png" return "image/jpeg"
elif extension == ".gif": elif extension == ".gif":
return "image/gif" return "image/gif"
elif extension == ".apng": elif extension == ".apng":