From 947dbb6f8a3a87e827755165126397933728ea3e Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 22 Oct 2022 02:08:19 +0200 Subject: [PATCH] webdav mimetypes based on file extensions (for gnome) --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index a85e5836..0b1bd08f 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -804,7 +804,7 @@ class HttpCli(object): "supportedlock": '', } 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():