Make sure that handlers always return Json::objectValue.

This commit is contained in:
Tom Ritchford
2014-12-01 15:26:59 -05:00
parent b0d47ebcc6
commit 86df482842
22 changed files with 43 additions and 32 deletions

View File

@@ -29,7 +29,7 @@ Json::Value doSMS (RPC::Context& context)
HTTPClient::sendSMS (
getApp().getIOService (), context.params["text"].asString ());
return "sms dispatched";
return RPC::makeObjectValue ("sms dispatched");
}
} // ripple