Skip to content

Commit

Permalink
tinyxml2: array with data for dict type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc56 committed Dec 28, 2024
1 parent ece19c7 commit 417ceff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpc/xmlrpc_tinyxml2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ print_object_xml(const torrent::Object& obj, tinyxml2::XMLPrinter* printer) {
break;
case torrent::Object::TYPE_DICT_KEY:
printer->OpenElement("array", true);

printer->OpenElement("data", true);
printer->OpenElement("value", true);
print_object_xml(obj.as_dict_key(), printer);
printer->CloseElement(true);
Expand All @@ -194,6 +194,7 @@ print_object_xml(const torrent::Object& obj, tinyxml2::XMLPrinter* printer) {
printer->CloseElement(true);
}
printer->CloseElement(true);
printer->CloseElement(true);
break;
default:
printer->OpenElement("i4", true);
Expand Down

0 comments on commit 417ceff

Please sign in to comment.