From a854cb96172dde67d09251bbc72ed68545ac3455 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 26 Dec 2020 18:25:19 +0000 Subject: [PATCH] webdav: add "Depth: 0" to GET requests to fix bitrix See: https://forum.rclone.org/t/bitrix24-de-remote-support/21112/ --- backend/webdav/webdav.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 6f1238e3b..e441b06a5 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -1133,6 +1133,9 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read Method: "GET", Path: o.filePath(), Options: options, + ExtraHeaders: map[string]string{ + "Depth": "0", + }, } err = o.fs.pacer.Call(func() (bool, error) { resp, err = o.fs.srv.Call(ctx, &opts)