diff --git a/internal/api/handler.go b/internal/api/handler.go index 4139842c..2e041181 100644 --- a/internal/api/handler.go +++ b/internal/api/handler.go @@ -44,6 +44,7 @@ func checkHost(f http.HandlerFunc) http.HandlerFunc { if r.Host != common.APIHTTPAddr { Logger.Warnf("invalid request to API server with host: %s, expected: %s", r.Host, common.APIHTTPAddr) w.WriteHeader(http.StatusNotFound) + w.Write([]byte("invalid request")) return } f(w, r)