Change HTTP request method from HEAD to GET in checkAndUpdateStatus function

This commit is contained in:
headlessdev 2025-04-17 15:34:45 +02:00
parent e9aba02d5f
commit 6fd360b594

View File

@ -107,7 +107,7 @@ func checkAndUpdateStatus(db *sql.DB, client *http.Client, apps []Application) {
httpCtx, httpCancel := context.WithTimeout(context.Background(), 4*time.Second) httpCtx, httpCancel := context.WithTimeout(context.Background(), 4*time.Second)
defer httpCancel() defer httpCancel()
req, err := http.NewRequestWithContext(httpCtx, "HEAD", app.PublicURL, nil) req, err := http.NewRequestWithContext(httpCtx, "GET", app.PublicURL, nil)
if err != nil { if err != nil {
fmt.Printf("Error creating request: %v\n", err) fmt.Printf("Error creating request: %v\n", err)
continue continue