mirror of https://github.com/aria2/aria2
Fix broken XMLRPC method call
parent
8d62682202
commit
732ed1fb8b
|
@ -227,8 +227,8 @@ bool HttpServerBodyCommand::execute()
|
|||
return true;
|
||||
}
|
||||
A2_LOG_INFO(fmt("Executing RPC method %s", req.methodName.c_str()));
|
||||
auto res = rpc::getMethod(req.methodName)
|
||||
->execute(std::move(req), e_);
|
||||
auto method = rpc::getMethod(req.methodName);
|
||||
auto res = method->execute(std::move(req), e_);
|
||||
bool gzip = httpServer_->supportsGZip();
|
||||
std::string responseData = rpc::toXml(res, gzip);
|
||||
httpServer_->feedResponse(std::move(responseData), "text/xml");
|
||||
|
|
Loading…
Reference in New Issue