mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
fix mimetype detection for uppercase file extensions
This commit is contained in:
parent
e396c5c2b5
commit
565daee98b
|
@ -2681,7 +2681,7 @@ def unescape_cookie(orig: str) -> str:
|
|||
|
||||
def guess_mime(url: str, fallback: str = "application/octet-stream") -> str:
|
||||
try:
|
||||
_, ext = url.rsplit(".", 1)
|
||||
ext = url.rsplit(".", 1)[1].lower()
|
||||
except:
|
||||
return fallback
|
||||
|
||||
|
|
Loading…
Reference in a new issue