diff --git a/src/rpc/xmlrpc_tinyxml2.cc b/src/rpc/xmlrpc_tinyxml2.cc index 42ee55890..8abbaaddb 100644 --- a/src/rpc/xmlrpc_tinyxml2.cc +++ b/src/rpc/xmlrpc_tinyxml2.cc @@ -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);