webdav mimetypes based on file extensions (for gnome)

This commit is contained in:
ed 2022-10-22 02:08:19 +02:00
parent 1c2fedd2bf
commit 947dbb6f8a

View file

@ -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():