mirror of
https://github.com/9001/copyparty.git
synced 2026-03-12 11:13:56 +10:00
webdav mimetypes based on file extensions (for gnome)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user