moved warnings array out of result JSON (#208)

This commit is contained in:
ethanlabelle
2022-07-26 13:39:27 -04:00
committed by GitHub
parent 39ef2ae33c
commit ce60c8f64d

View File

@@ -424,7 +424,7 @@ handle_request(
auto lastCloseAge = context->etl->lastCloseAgeSeconds();
if (lastCloseAge >= 60)
warnings.emplace_back("This server may be out of date");
result["warnings"] = warnings;
response["warnings"] = warnings;
responseStr = boost::json::serialize(response);
if (!dosGuard.add(ip, responseStr.size()))
{