mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -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>',
|
"supportedlock": '<D:lockentry xmlns:D="DAV:"><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry>',
|
||||||
}
|
}
|
||||||
if not isdir:
|
if not isdir:
|
||||||
pvs["getcontenttype"] = "application/octet-stream"
|
pvs["getcontenttype"] = guess_mime(vp)
|
||||||
pvs["getcontentlength"] = str(st.st_size)
|
pvs["getcontentlength"] = str(st.st_size)
|
||||||
|
|
||||||
for k, v in pvs.items():
|
for k, v in pvs.items():
|
||||||
|
|
Loading…
Reference in a new issue