mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
yandex: fix 400 Bad Request on transfer failure
Before this fix, if the upload failed for some reason the yandex backend would attempt to retry itself it which would fail immediately with 400 Bad Request. Normally we retry uploads at a higher level so they can be done with new data and this patch does that. See #7044
This commit is contained in:
parent
f3070b82bc
commit
055206c4ee
@ -1100,7 +1100,7 @@ func (o *Object) upload(ctx context.Context, in io.Reader, overwrite bool, mimeT
|
||||
NoResponse: true,
|
||||
}
|
||||
|
||||
err = o.fs.pacer.Call(func() (bool, error) {
|
||||
err = o.fs.pacer.CallNoRetry(func() (bool, error) {
|
||||
resp, err = o.fs.srv.Call(ctx, &opts)
|
||||
return shouldRetry(ctx, resp, err)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user