mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
sharefile: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
fc946d0c44
commit
385542e2f9
@ -1429,8 +1429,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
|||||||
var resp *http.Response
|
var resp *http.Response
|
||||||
var info api.UploadSpecification
|
var info api.UploadSpecification
|
||||||
opts := rest.Opts{
|
opts := rest.Opts{
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Path: "/Items(" + directoryID + ")/Upload2",
|
Path: "/Items(" + directoryID + ")/Upload2",
|
||||||
|
Options: options,
|
||||||
}
|
}
|
||||||
err = o.fs.pacer.Call(func() (bool, error) {
|
err = o.fs.pacer.Call(func() (bool, error) {
|
||||||
resp, err = o.fs.srv.CallJSON(ctx, &opts, &req, &info)
|
resp, err = o.fs.srv.CallJSON(ctx, &opts, &req, &info)
|
||||||
|
Loading…
Reference in New Issue
Block a user