sharefile: pass options to rest.Opts for Put and Update

This commit is contained in:
Tim Gallant 2020-03-21 15:14:50 -07:00 committed by Nick Craig-Wood
parent fc946d0c44
commit 385542e2f9
1 changed files with 3 additions and 2 deletions

View File

@ -1429,8 +1429,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
var resp *http.Response
var info api.UploadSpecification
opts := rest.Opts{
Method: "POST",
Path: "/Items(" + directoryID + ")/Upload2",
Method: "POST",
Path: "/Items(" + directoryID + ")/Upload2",
Options: options,
}
err = o.fs.pacer.Call(func() (bool, error) {
resp, err = o.fs.srv.CallJSON(ctx, &opts, &req, &info)