From 9ea209a9abd3e1b89ab93967a40a2709529c64a7 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 29 Mar 2021 19:32:09 +0100 Subject: [PATCH] webdav: fix DirMove for bitrix - FIXME DO NOT MERGE This implements a workaround to enable DirMove for bitrix to work. This is an apparently non RFC compliant change. See: https://forum.rclone.org/t/cant-manage-folders-using-bitrix-webdav-under-windows/23073 --- backend/webdav/webdav.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index ce2fb3ae1..e5d854669 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -1067,7 +1067,7 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string Path: addSlash(srcPath), NoResponse: true, ExtraHeaders: map[string]string{ - "Destination": addSlash(destinationURL.String()), + "Destination": destinationURL.String(), "Overwrite": "F", }, }