diff options
author | Sebastian Barfurth <github@afreshmelon.com> | 2015-03-18 19:06:08 +0100 |
---|---|---|
committer | Sebastian Barfurth <github@afreshmelon.com> | 2015-03-18 19:06:08 +0100 |
commit | 36a4be7623decd47a6aed2c90b4933b3ed0a6802 (patch) | |
tree | 5897f1fcca2c5b4a2f857232fba536e0bc7398ca /modules/m_xmlrpc.cpp | |
parent | 5fc72660e4237bd05222baec8956f0f19ded651f (diff) |
XML-RPC responses also don't have a methodName tag
Following http://xmlrpc.scripting.com/spec.html
Diffstat (limited to 'modules/m_xmlrpc.cpp')
-rw-r--r-- | modules/m_xmlrpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_xmlrpc.cpp b/modules/m_xmlrpc.cpp index 01300fbbb..dc80625f7 100644 --- a/modules/m_xmlrpc.cpp +++ b/modules/m_xmlrpc.cpp @@ -179,7 +179,7 @@ class MyXMLRPCServiceInterface : public XMLRPCServiceInterface, public HTTPPage if (!request.id.empty()) request.reply("id", request.id); - Anope::string r = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<methodResponse>\n<methodName>" + request.name + "</methodName>\n<params>\n<param>\n<value>\n<struct>\n"; + Anope::string r = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<methodResponse>\n<params>\n<param>\n<value>\n<struct>\n"; for (std::map<Anope::string, Anope::string>::const_iterator it = request.get_replies().begin(); it != request.get_replies().end(); ++it) r += "<member>\n<name>" + it->first + "</name>\n<value>\n<string>" + this->Sanitize(it->second) + "</string>\n</value>\n</member>\n"; r += "</struct>\n</value>\n</param>\n</params>\n</methodResponse>"; |