From ff6011717f7fe2f9ab057c38b9c6763ce0667f5d Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Wed, 20 Dec 2023 08:03:05 +1100 Subject: [PATCH] favico is a health check --- handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/handler.go b/handler/handler.go index 0d9ca52..2c2a41c 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -60,7 +60,7 @@ type Handler struct { } func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - if r.URL.Path == "/healthz" { + if r.URL.Path == "/healthz" || r.URL.Path == "/favicon.ico" { w.WriteHeader(http.StatusOK) w.Write([]byte("OK")) return