mirror of
https://github.com/9001/copyparty.git
synced 2025-10-02 14:42:28 -06:00
Fix filetype detection
This commit is contained in:
parent
76b8565806
commit
1aa3728b8a
|
@ -6883,9 +6883,9 @@ class HttpCli(object):
|
|||
)
|
||||
|
||||
if "rmagic" in self.vn.flags:
|
||||
item["mime"] = guess_mime(fn, item["_fspath"])
|
||||
item["mime"] = guess_mime(item["name"], item["_fspath"])
|
||||
else:
|
||||
item["mime"] = guess_mime(fn)
|
||||
item["mime"] = guess_mime(item["name"])
|
||||
|
||||
# Make sure we can actually generate JPEG thumbnails
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue