From 385542e2f99564761157d026dbf4c56c838b29d8 Mon Sep 17 00:00:00 2001 From: Tim Gallant Date: Sat, 21 Mar 2020 15:14:50 -0700 Subject: [PATCH] sharefile: pass options to rest.Opts for Put and Update --- backend/sharefile/sharefile.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/sharefile/sharefile.go b/backend/sharefile/sharefile.go index 2be175003..798bb04c5 100644 --- a/backend/sharefile/sharefile.go +++ b/backend/sharefile/sharefile.go @@ -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)