Add heartbeat-api-v API version header

This commit is contained in:
Lion Kortlepel
2021-09-21 13:25:26 +02:00
committed by Lion
parent 7f2ca025f8
commit 0961f86662

View File

@@ -59,7 +59,7 @@ void THeartbeatThread::operator()() {
json::Document Doc;
bool Ok = false;
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());
if (Doc.HasParseError() || !Doc.IsObject()) {
error("Backend response failed to parse as valid json");