mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fix: invalid checksum on site replication with conforming checksum types (#21535)
This commit is contained in:
@@ -221,6 +221,10 @@ func (api objectAPIHandlers) NewMultipartUploadHandler(w http.ResponseWriter, r
|
||||
opts.WantChecksum = &hash.Checksum{Type: checksumType}
|
||||
}
|
||||
|
||||
if opts.WantChecksum != nil {
|
||||
opts.WantChecksum.Type |= hash.ChecksumMultipart | hash.ChecksumIncludesMultipart
|
||||
}
|
||||
|
||||
newMultipartUpload := objectAPI.NewMultipartUpload
|
||||
|
||||
res, err := newMultipartUpload(ctx, bucket, object, opts)
|
||||
|
||||
Reference in New Issue
Block a user