mirror of
https://github.com/rclone/rclone.git
synced 2024-12-01 13:04:21 +08:00
webdav: fix server side copy/move not overwriting - fixes #6964
This commit is contained in:
parent
4471e6f258
commit
864eb89a67
|
@ -1047,7 +1047,7 @@ func (f *Fs) copyOrMove(ctx context.Context, src fs.Object, remote string, metho
|
||||||
NoResponse: true,
|
NoResponse: true,
|
||||||
ExtraHeaders: map[string]string{
|
ExtraHeaders: map[string]string{
|
||||||
"Destination": destinationURL.String(),
|
"Destination": destinationURL.String(),
|
||||||
"Overwrite": "F",
|
"Overwrite": "T",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if f.useOCMtime {
|
if f.useOCMtime {
|
||||||
|
@ -1147,7 +1147,7 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string
|
||||||
NoResponse: true,
|
NoResponse: true,
|
||||||
ExtraHeaders: map[string]string{
|
ExtraHeaders: map[string]string{
|
||||||
"Destination": addSlash(destinationURL.String()),
|
"Destination": addSlash(destinationURL.String()),
|
||||||
"Overwrite": "F",
|
"Overwrite": "T",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
// Direct the MOVE/COPY to the source server
|
// Direct the MOVE/COPY to the source server
|
||||||
|
|
Loading…
Reference in New Issue
Block a user