Fix mimetype for JPEG file extensions (#25)
This commit is contained in:
parent
61ce62b026
commit
a351c6b117
@ -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":
|
||||
|
Reference in New Issue
Block a user