Skip to content

Commit

Permalink
favico is a health check
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora authored Dec 19, 2023
1 parent 9ee95bc commit ff60117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff60117

Please sign in to comment.