mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-18 19:50:54 +00:00
Add heartbeat-api-v API version header
This commit is contained in:
@@ -59,7 +59,7 @@ void THeartbeatThread::operator()() {
|
|||||||
json::Document Doc;
|
json::Document Doc;
|
||||||
bool Ok = false;
|
bool Ok = false;
|
||||||
for (const auto& Url : Urls) {
|
for (const auto& Url : Urls) {
|
||||||
T = Http::POST(Url, Target, {}, Body, false, &ResponseCode);
|
T = Http::POST(Url, Target, {"heartbeat-api-v", "1.0.0"}, Body, false, &ResponseCode);
|
||||||
Doc.Parse(T.data(), T.size());
|
Doc.Parse(T.data(), T.size());
|
||||||
if (Doc.HasParseError() || !Doc.IsObject()) {
|
if (Doc.HasParseError() || !Doc.IsObject()) {
|
||||||
error("Backend response failed to parse as valid json");
|
error("Backend response failed to parse as valid json");
|
||||||
|
|||||||
Reference in New Issue
Block a user