From a2dc42c5f59ce44389c8232c87771fbb7ee1539b Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 11 Aug 2021 23:19:06 +0200 Subject: [PATCH] THeartbeatThread: fix missing response code --- src/THeartbeatThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/THeartbeatThread.cpp b/src/THeartbeatThread.cpp index 96ffdac..f32c69e 100644 --- a/src/THeartbeatThread.cpp +++ b/src/THeartbeatThread.cpp @@ -54,11 +54,11 @@ void THeartbeatThread::operator()() { SentryReportError(Application::GetBackendHostname() + Target); std::this_thread::sleep_for(std::chrono::milliseconds(500)); - T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false); + T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false, &ResponseCode); if (T.substr(0, 2) != "20") { SentryReportError(Application::GetBackup1Hostname() + Target); std::this_thread::sleep_for(std::chrono::milliseconds(500)); - T = Http::POST(Application::GetBackup2Hostname(), Target, {}, Body, false); + T = Http::POST(Application::GetBackup2Hostname(), Target, {}, Body, false, &ResponseCode); if (T.substr(0, 2) != "20") { warn("Backend system refused server! Server might not show in the public list"); isAuth = false;