mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
fix complete_multipart_md5
This commit is contained in:
@@ -5463,7 +5463,11 @@ fn get_complete_multipart_md5(parts: &[CompletePart]) -> String {
|
|||||||
|
|
||||||
for part in parts.iter() {
|
for part in parts.iter() {
|
||||||
if let Some(etag) = &part.e_tag {
|
if let Some(etag) = &part.e_tag {
|
||||||
buf.extend(etag.bytes());
|
if let Ok(etag_bytes) = hex_simd::decode_to_vec(etag.as_bytes()) {
|
||||||
|
buf.extend(etag_bytes);
|
||||||
|
} else {
|
||||||
|
buf.extend(etag.bytes());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user