From 3130f870bbcaecb2300b26d30a6decc35268c269 Mon Sep 17 00:00:00 2001 From: Tim Gallant Date: Sat, 21 Mar 2020 14:59:23 -0700 Subject: [PATCH] sugarsync: pass options to rest.Opts for Put and Update --- backend/sugarsync/sugarsync.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/sugarsync/sugarsync.go b/backend/sugarsync/sugarsync.go index 2df0b0087..ae306caae 100644 --- a/backend/sugarsync/sugarsync.go +++ b/backend/sugarsync/sugarsync.go @@ -733,7 +733,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options . return existingObj, existingObj.Update(ctx, in, src, options...) case fs.ErrorObjectNotFound: // Not found so create it - return f.PutUnchecked(ctx, in, src) + return f.PutUnchecked(ctx, in, src, options...) default: return nil, err } @@ -1320,6 +1320,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op RootURL: o.id, Path: "/data", NoResponse: true, + Options: options, Body: in, } if size >= 0 {