From 38123c70eb575dc1438ac2e987e971ad7e95a9d7 Mon Sep 17 00:00:00 2001 From: Tim Gallant Date: Sun, 16 Feb 2020 11:26:55 -0800 Subject: [PATCH] b2: pass options to rest.Opts for Update --- backend/b2/b2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/b2/b2.go b/backend/b2/b2.go index c622c7ba7..d69c47f44 100644 --- a/backend/b2/b2.go +++ b/backend/b2/b2.go @@ -1816,6 +1816,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op Method: "POST", RootURL: upload.UploadURL, Body: in, + Options: options, ExtraHeaders: map[string]string{ "Authorization": upload.AuthorizationToken, "X-Bz-File-Name": urlEncode(o.fs.opt.Enc.FromStandardPath(bucketPath)),