diff --git a/templates/front/snippets/go.html b/templates/front/snippets/go.html index 3f72e0d2..83d9f599 100644 --- a/templates/front/snippets/go.html +++ b/templates/front/snippets/go.html @@ -1,4 +1,4 @@
import "net/http"
 import "fmt"
-func main() { _, err := http.Get("PING_URL") }
+func main() { _, err := http.Head("PING_URL") }
 
diff --git a/templates/front/snippets/go.txt b/templates/front/snippets/go.txt index 8f1cbb19..4b1c1bc0 100644 --- a/templates/front/snippets/go.txt +++ b/templates/front/snippets/go.txt @@ -2,7 +2,7 @@ import "fmt" import "net/http" func main() { - _, err := http.Get("PING_URL") + _, err := http.Head("PING_URL") if err != nil { fmt.Printf("%s", err) }