From 8b6a6febe129e3d34c5c18a530dbcc23b18bab41 Mon Sep 17 00:00:00 2001 From: Alexander Metzner Date: Thu, 2 Mar 2023 08:41:37 +0100 Subject: [PATCH] fix: header name --- healthcheck.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.go b/healthcheck.go index a729d89..5772142 100644 --- a/healthcheck.go +++ b/healthcheck.go @@ -261,7 +261,7 @@ func (h *Handler) handleReady(w http.ResponseWriter, r *http.Request) { func (h *Handler) handleInfo(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") - w.Header().Set("Content-Lengt", strconv.Itoa(len(h.infoPayload))) + w.Header().Set("Content-Length", strconv.Itoa(len(h.infoPayload))) w.WriteHeader(http.StatusOK) w.Write(h.infoPayload) }