sharefile: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
fc946d0c44
commit
385542e2f9
1 changed files with 3 additions and 2 deletions
|
@ -1431,6 +1431,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||||
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…
Add table
Reference in a new issue