rest: bugfix, fix crash error when calling /deploymentinfo

Github-Pull: #27853
Rebased-From: ce887eaf4917c337b21aa2e7811804ce003d36be
This commit is contained in:
brunoerg 2023-06-10 23:26:24 -03:00 committed by fanquake
parent 6f7a0ae58b
commit 72ead8699f
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -628,7 +628,7 @@ static bool rest_deploymentinfo(const std::any& context, HTTPRequest* req, const
return RESTERR(req, HTTP_BAD_REQUEST, "Block not found");
}
jsonRequest.params.pushKV("blockhash", hash_str);
jsonRequest.params.push_back(hash_str);
}
req->WriteHeader("Content-Type", "application/json");