1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-18 10:23:31 +00:00

onedrive: fix cancelling multipart upload

Before this change it was giving back "401 Unauthorized" however
removing the "Authorization: XXXX" from the request fixes the problem
as the auth is in the URL already.
This commit is contained in:
Nick Craig-Wood
2026-01-29 11:55:46 +00:00
parent 7615636093
commit d660960775

View File

@@ -2554,7 +2554,7 @@ func (o *Object) cancelUploadSession(ctx context.Context, url string) (err error
}
var resp *http.Response
err = o.fs.pacer.Call(func() (bool, error) {
resp, err = o.fs.srv.Call(ctx, &opts)
resp, err = o.fs.unAuth.Call(ctx, &opts)
return shouldRetry(ctx, resp, err)
})
return