b2: pass options to rest.Opts for Update

This commit is contained in:
Tim Gallant 2020-02-16 11:26:55 -08:00 committed by Nick Craig-Wood
parent 5cb7229a16
commit 38123c70eb

View File

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