rest: bugfix, fix crash error when calling /deploymentinfo

This commit is contained in:
brunoerg committed 2023-06-12 10:24:14 -03:00
1 parent 153a6882f4
commit ce887eaf49
1 file changed
+1 -1
+1 -1
View File
@@ -627,7 +627,7 @@ static bool rest_deploymentinfo(const std::any& context, HTTPRequest* req, const
return RESTERR(req, HTTP_BAD_REQUEST, "Block not found"); 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"); req->WriteHeader("Content-Type", "application/json");