Module: sems
Branch: master
Commit: 0589b8800ddfc5560091c024f29277e522468001
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=0589b8800ddfc5560091c024f29277e522468001

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date:   Sun May 25 12:02:46 2014 +0300

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

---

 apps/jsonrpc/JsonRPCServer.cpp |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/apps/jsonrpc/JsonRPCServer.cpp b/apps/jsonrpc/JsonRPCServer.cpp
index 7d43373..4ecaa27 100644
--- a/apps/jsonrpc/JsonRPCServer.cpp
+++ b/apps/jsonrpc/JsonRPCServer.cpp
@@ -352,8 +352,6 @@ void JsonRpcServer::execRpc(const string& method, const 
string& id, const AmArg&
     rpc_res["jsonrpc"] = "2.0";
     return;
   }
-  
-  rpc_res["error"] = AmArg(); // Undef/null
 }
 
 void JsonRpcServer::runCoreMethod(const string& method, const AmArg& params, 
AmArg& res) {

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to