mirror of
https://github.com/rclone/rclone.git
synced 2025-01-08 23:40:29 +01:00
rest: fix missing error check
This commit is contained in:
parent
3b91fb6a2f
commit
c93e0ff8ee
@ -444,6 +444,9 @@ func (api *Client) callCodec(ctx context.Context, opts *Opts, request interface{
|
||||
|
||||
var overhead int64
|
||||
opts.Body, opts.ContentType, overhead, err = MultipartUpload(opts.Body, params, opts.MultipartContentName, opts.MultipartFileName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if opts.ContentLength != nil {
|
||||
*opts.ContentLength += overhead
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user