Skip to content

Commit

Permalink
tinyxml2: in xmlrpc an array must include values in a data element
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc56 committed Dec 28, 2024
1 parent 68fdb86 commit ece19c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/xmlrpc_tinyxml2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,14 @@ print_object_xml(const torrent::Object& obj, tinyxml2::XMLPrinter* printer) {
break;
case torrent::Object::TYPE_LIST:
printer->OpenElement("array", true);
printer->OpenElement("data", true);
for (const auto& itr : obj.as_list()) {
printer->OpenElement("value", true);
print_object_xml(itr, printer);
printer->CloseElement(true);
}
printer->CloseElement(true);
printer->CloseElement(true);
break;
case torrent::Object::TYPE_MAP:
printer->OpenElement("struct", true);
Expand Down

0 comments on commit ece19c7

Please sign in to comment.