garage_api(multipart_upload): Fix incorrect error on some weird Multipart Upload body
This commit is contained in:
parent
b45dcc1925
commit
7550d230df
1 changed files with 5 additions and 0 deletions
|
@ -715,6 +715,11 @@ fn parse_complete_multpart_upload_body(
|
||||||
}
|
}
|
||||||
|
|
||||||
for item in cmu.children() {
|
for item in cmu.children() {
|
||||||
|
// Only parse <Part> nodes
|
||||||
|
if !item.is_element() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if item.has_tag_name("Part") {
|
if item.has_tag_name("Part") {
|
||||||
let etag = item.children().find(|e| e.has_tag_name("ETag"))?.text()?;
|
let etag = item.children().find(|e| e.has_tag_name("ETag"))?.text()?;
|
||||||
let part_number = item
|
let part_number = item
|
||||||
|
|
Loading…
Reference in a new issue