mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
sugarsync: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
51b617f601
commit
3130f870bb
@ -733,7 +733,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options .
|
|||||||
return existingObj, existingObj.Update(ctx, in, src, options...)
|
return existingObj, existingObj.Update(ctx, in, src, options...)
|
||||||
case fs.ErrorObjectNotFound:
|
case fs.ErrorObjectNotFound:
|
||||||
// Not found so create it
|
// Not found so create it
|
||||||
return f.PutUnchecked(ctx, in, src)
|
return f.PutUnchecked(ctx, in, src, options...)
|
||||||
default:
|
default:
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -1320,6 +1320,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
|||||||
RootURL: o.id,
|
RootURL: o.id,
|
||||||
Path: "/data",
|
Path: "/data",
|
||||||
NoResponse: true,
|
NoResponse: true,
|
||||||
|
Options: options,
|
||||||
Body: in,
|
Body: in,
|
||||||
}
|
}
|
||||||
if size >= 0 {
|
if size >= 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user