mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-23 21:25:50 +00:00
Handle case where params is null (#65)
* if request does not have parameters, set params to empty [{}]
This commit is contained in:
@@ -37,7 +37,7 @@ make_HttpContext(
|
||||
if (command == "subscribe" || command == "unsubscribe")
|
||||
return {};
|
||||
|
||||
if (!request.contains("params") || !request.at("params").is_array())
|
||||
if (!request.at("params").is_array())
|
||||
return {};
|
||||
|
||||
boost::json::array const& array = request.at("params").as_array();
|
||||
|
||||
Reference in New Issue
Block a user