Fix heartbeat request

This commit is contained in:
Tixx 2025-01-11 22:27:42 +01:00
parent 26f1be0a51
commit 7c864d94b3
No known key found for this signature in database
GPG Key ID: EC6E7A2BAABF0B8C

View File

@ -66,7 +66,7 @@ void THeartbeatThread::operator()() {
json::Document Doc; json::Document Doc;
bool Ok = false; bool Ok = false;
for (const auto& Url : Application::GetBackendUrlsInOrder()) { for (const auto& Url : Application::GetBackendUrlsInOrder()) {
T = Http::POST(Url, 443, Target, Body, "application/json", &ResponseCode, { { "api-v", "2" } }); T = Http::POST(Url + Target, Body, "application/json", &ResponseCode, { { "api-v", "2" } });
if (!Application::Settings.getAsBool(Settings::Key::General_Private)) { if (!Application::Settings.getAsBool(Settings::Key::General_Private)) {
beammp_debug("Backend response was: `" + T + "`"); beammp_debug("Backend response was: `" + T + "`");