mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 23:47:13 +00:00
Fix: Update online status check to account for HTTP 405 response
This commit is contained in:
parent
edbc72a7c9
commit
d6889a27b5
@ -131,7 +131,7 @@ func checkAndUpdateStatus(db *sql.DB, client *http.Client, apps []Application) {
|
||||
resp.Body.Close() // Important to prevent leaks
|
||||
}
|
||||
|
||||
isOnline := err == nil && resp != nil && resp.StatusCode >= 200 && resp.StatusCode < 300
|
||||
isOnline := err == nil && resp != nil && resp.StatusCode >= 200 && resp.StatusCode < 300 || resp.StatusCode == 405
|
||||
|
||||
// Database Update
|
||||
dbCtx, dbCancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user