s3: fix OpenOptions being ignored in uploadMultipart with chunkWriter

This commit is contained in:
Vitor Gomes 2023-10-06 17:53:36 +02:00 committed by Nick Craig-Wood
parent c5f6fc3283
commit 37eaa3682a

View File

@ -6070,7 +6070,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
var err error var err error
var ui uploadInfo var ui uploadInfo
if multipart { if multipart {
wantETag, gotETag, versionID, ui, err = o.uploadMultipart(ctx, src, in) wantETag, gotETag, versionID, ui, err = o.uploadMultipart(ctx, src, in, options...)
} else { } else {
ui, err = o.prepareUpload(ctx, src, options) ui, err = o.prepareUpload(ctx, src, options)
if err != nil { if err != nil {