mirror of https://gitlab.com/litecord/litecord.git
images: add webp hardcode to _get_mime
This commit is contained in:
parent
479151cdfa
commit
27c6402233
|
|
@ -20,6 +20,9 @@ def _get_ext(mime: str):
|
||||||
|
|
||||||
|
|
||||||
def _get_mime(ext: str):
|
def _get_mime(ext: str):
|
||||||
|
if ext == 'webp':
|
||||||
|
return 'image/webp'
|
||||||
|
|
||||||
return mimetypes.types_map[f'.{ext}']
|
return mimetypes.types_map[f'.{ext}']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue