diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 15:31:26 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-14 15:31:26 +0900 |
| commit | 5a1fb3875fdb27076e71a87e35359aad0aba108c (patch) | |
| tree | a57453976740a43727882fcc22005ae1a88da1e1 /src/HttpServerBodyCommand.cc | |
| parent | bf01bb84b6b96fe2cba529f588e29a9038c0daf6 (diff) | |
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().
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
| -rw-r--r-- | src/HttpServerBodyCommand.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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<ValueBase> id = jsondict->get("id"); if(!id) { - return createJsonRpcErrorResponse(-32600, "Invalid Request.", - SharedHandle<ValueBase>()); + return createJsonRpcErrorResponse(-32600, "Invalid Request.", Null::g()); } const String* methodName = asString(jsondict->get("method")); if(!methodName) { |
