mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-09 03:36:45 +00:00
append warnings to response instead of result (#192)
This commit is contained in:
@@ -355,8 +355,7 @@ public:
|
||||
if (lastPublishAge >= 60)
|
||||
warnings.emplace_back("This server may be out of date");
|
||||
|
||||
auto& result = response["result"].as_object();
|
||||
result["warnings"] = warnings;
|
||||
response["warnings"] = warnings;
|
||||
std::string responseStr = boost::json::serialize(response);
|
||||
if (!dosGuard_.add(*ip, responseStr.size()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user