From 5592a5fd91b23195f58dd7681ec152ad58b0318d Mon Sep 17 00:00:00 2001 From: headlessdev Date: Thu, 24 Apr 2025 15:54:42 +0200 Subject: [PATCH] HOTFIX: Uptime Online Status --- agent/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/agent/main.go b/agent/main.go index d56885c..3316dfb 100644 --- a/agent/main.go +++ b/agent/main.go @@ -342,7 +342,13 @@ func checkAndUpdateStatus(db *sql.DB, client *http.Client, apps []Application) { var isOnline bool if err == nil && resp != nil { - isOnline = (resp.StatusCode >= 200 && resp.StatusCode < 300) || resp.StatusCode == 405 + isOnline = (resp.StatusCode >= 200 && resp.StatusCode < 300) || + resp.StatusCode == 405 || + resp.StatusCode == 302 || + resp.StatusCode == 301 || + resp.StatusCode == 303 || + resp.StatusCode == 307 || + resp.StatusCode == 308 resp.Body.Close() } else { if err != nil {