mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 16:07:10 +00:00
Change HTTP request method from HEAD to GET in checkAndUpdateStatus function
This commit is contained in:
parent
e9aba02d5f
commit
6fd360b594
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user