mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
webdav mimetypes based on file extensions (for gnome)
This commit is contained in:
parent
1c2fedd2bf
commit
947dbb6f8a
|
@ -804,7 +804,7 @@ class HttpCli(object):
|
|||
"supportedlock": '<D:lockentry xmlns:D="DAV:"><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry>',
|
||||
}
|
||||
if not isdir:
|
||||
pvs["getcontenttype"] = "application/octet-stream"
|
||||
pvs["getcontenttype"] = guess_mime(vp)
|
||||
pvs["getcontentlength"] = str(st.st_size)
|
||||
|
||||
for k, v in pvs.items():
|
||||
|
|
Loading…
Reference in a new issue