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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user