mirror of
https://github.com/9001/copyparty.git
synced 2026-11-15 11:28:24 +00:00
fix mimetype detection for uppercase file extensions
This commit is contained in:
1 parent
e396c5c2b5
commit
565daee98b
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user