mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +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() {
|
||||
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