Browse code

apps/jsonrpc: do not include 'error' member in response

- one more place where initializing of rpc_res["error"] to null needs
to be removed in order to prevent error member appearing in response
when there is no error

Juha Heinanen authored on 25/05/2014 09:02:46
Showing 1 changed files
... ...
@@ -352,8 +352,6 @@ void JsonRpcServer::execRpc(const string& method, const string& id, const AmArg&
352 352
     rpc_res["jsonrpc"] = "2.0";
353 353
     return;
354 354
   }
355
-  
356
-  rpc_res["error"] = AmArg(); // Undef/null
357 355
 }
358 356
 
359 357
 void JsonRpcServer::runCoreMethod(const string& method, const AmArg& params, AmArg& res) {