mirror of
https://github.com/rclone/rclone.git
synced 2025-01-09 07:48:19 +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
|
var overhead int64
|
||||||
opts.Body, opts.ContentType, overhead, err = MultipartUpload(opts.Body, params, opts.MultipartContentName, opts.MultipartFileName)
|
opts.Body, opts.ContentType, overhead, err = MultipartUpload(opts.Body, params, opts.MultipartContentName, opts.MultipartFileName)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
if opts.ContentLength != nil {
|
if opts.ContentLength != nil {
|
||||||
*opts.ContentLength += overhead
|
*opts.ContentLength += overhead
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user