garage_api(multipart_upload): Fix incorrect error on some weird Multipart Upload body

This commit is contained in:
Jill 2022-01-14 14:17:23 +01:00
parent b45dcc1925
commit 7550d230df
Signed by: KokaKiwi
GPG key ID: 09A5A2688F13FAC1

View file

@ -715,6 +715,11 @@ fn parse_complete_multpart_upload_body(
}
for item in cmu.children() {
// Only parse <Part> nodes
if !item.is_element() {
continue;
}
if item.has_tag_name("Part") {
let etag = item.children().find(|e| e.has_tag_name("ETag"))?.text()?;
let part_number = item