From 6fd360b5943331ea2b8550505afd36cb83900c2b Mon Sep 17 00:00:00 2001 From: headlessdev Date: Thu, 17 Apr 2025 15:34:45 +0200 Subject: [PATCH] Change HTTP request method from HEAD to GET in checkAndUpdateStatus function --- agent/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/main.go b/agent/main.go index e03d91b..ed08058 100644 --- a/agent/main.go +++ b/agent/main.go @@ -107,7 +107,7 @@ func checkAndUpdateStatus(db *sql.DB, client *http.Client, apps []Application) { httpCtx, httpCancel := context.WithTimeout(context.Background(), 4*time.Second) defer httpCancel() - req, err := http.NewRequestWithContext(httpCtx, "HEAD", app.PublicURL, nil) + req, err := http.NewRequestWithContext(httpCtx, "GET", app.PublicURL, nil) if err != nil { fmt.Printf("Error creating request: %v\n", err) continue