Fix broken XMLRPC method call

pull/115/head
Tatsuhiro Tsujikawa 2013-08-12 10:55:50 +09:00
parent 8d62682202
commit 732ed1fb8b
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ bool HttpServerBodyCommand::execute()
return true; return true;
} }
A2_LOG_INFO(fmt("Executing RPC method %s", req.methodName.c_str())); A2_LOG_INFO(fmt("Executing RPC method %s", req.methodName.c_str()));
auto res = rpc::getMethod(req.methodName) auto method = rpc::getMethod(req.methodName);
->execute(std::move(req), e_); auto res = method->execute(std::move(req), e_);
bool gzip = httpServer_->supportsGZip(); bool gzip = httpServer_->supportsGZip();
std::string responseData = rpc::toXml(res, gzip); std::string responseData = rpc::toXml(res, gzip);
httpServer_->feedResponse(std::move(responseData), "text/xml"); httpServer_->feedResponse(std::move(responseData), "text/xml");