From 0e871220de6edfe85dececb2dc3011eec6ea2a3b Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sun, 17 May 2026 22:18:23 -0400 Subject: [PATCH] require host header --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f217cee..c452dfc 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { // error handling for common probes if r.Host == "" { - http.BadRequest(w, r) + http.Error(w, "", http.StatusBadRequest) return }