Przeglądaj źródła

Fix broken XMLRPC method call

Tatsuhiro Tsujikawa 12 lat temu
rodzic
commit
732ed1fb8b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/HttpServerBodyCommand.cc

+ 2 - 2
src/HttpServerBodyCommand.cc

@@ -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");