1
0
mirror of https://github.com/rclone/rclone.git synced 2025-07-13 02:35:35 +02:00

putio: fix panic on Object.Open

This commit is contained in:
Cenk Alti
2020-06-08 23:13:41 +03:00
committed by Nick Craig-Wood
parent 7a8ade4949
commit cbc448039d

@ -248,7 +248,10 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
_ = resp.Body.Close()
return nil, fserrors.NoRetryError(err)
}
return resp.Body, err
if err != nil {
return nil, err
}
return resp.Body, nil
}
// Update the already existing object