mirror of
https://github.com/minio/minio.git
synced 2025-01-11 06:53:22 -05:00
Detect multipart uploads correctly in unencrypted case (#13176)
This is a fix building on #13171 to ensure objects uploaded using multipart are replicated as multipart
This commit is contained in:
parent
950fe73c4f
commit
418f8bed6a
@ -75,7 +75,8 @@ func (o *ObjectInfo) isMultipart() bool {
|
|||||||
if len(o.Parts) == 0 {
|
if len(o.Parts) == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if !crypto.IsMultiPart(o.UserDefined) {
|
_, encrypted := crypto.IsEncrypted(o.UserDefined)
|
||||||
|
if encrypted && !crypto.IsMultiPart(o.UserDefined) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
for _, part := range o.Parts {
|
for _, part := range o.Parts {
|
||||||
|
Loading…
Reference in New Issue
Block a user