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

This commit is contained in:
Tim Gallant 2020-03-21 14:59:23 -07:00 committed by Nick Craig-Wood
parent 51b617f601
commit 3130f870bb

View File

@ -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 {