From 5a1fb3875fdb27076e71a87e35359aad0aba108c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 14 Mar 2011 15:31:26 +0900 Subject: Added XmlRpcResponseTest. Set null as id if id is not sent. Removed unused XmlRpcResponse::toJsonBatch(). Set default value false to gzip argument of xmlrpc::toJsonBatch(). --- src/HttpServerBodyCommand.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/HttpServerBodyCommand.cc') diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc index 7577d3eb..44eaa2f0 100644 --- a/src/HttpServerBodyCommand.cc +++ b/src/HttpServerBodyCommand.cc @@ -149,8 +149,7 @@ HttpServerBodyCommand::processJsonRpcRequest(const Dict* jsondict) SharedHandle id = jsondict->get("id"); if(!id) { - return createJsonRpcErrorResponse(-32600, "Invalid Request.", - SharedHandle()); + return createJsonRpcErrorResponse(-32600, "Invalid Request.", Null::g()); } const String* methodName = asString(jsondict->get("method")); if(!methodName) { -- cgit