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

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 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)