From 864eb89a67216c16f9b238b455477b93f73718d0 Mon Sep 17 00:00:00 2001 From: WeidiDeng Date: Mon, 24 Apr 2023 21:35:42 +0800 Subject: [PATCH] webdav: fix server side copy/move not overwriting - fixes #6964 --- backend/webdav/webdav.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index cc714d826..de19e0abd 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -1047,7 +1047,7 @@ func (f *Fs) copyOrMove(ctx context.Context, src fs.Object, remote string, metho NoResponse: true, ExtraHeaders: map[string]string{ "Destination": destinationURL.String(), - "Overwrite": "F", + "Overwrite": "T", }, } if f.useOCMtime { @@ -1147,7 +1147,7 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string NoResponse: true, ExtraHeaders: map[string]string{ "Destination": addSlash(destinationURL.String()), - "Overwrite": "F", + "Overwrite": "T", }, } // Direct the MOVE/COPY to the source server