Skip to content

Commit

Permalink
fix: header name
Browse files Browse the repository at this point in the history
  • Loading branch information
halimath committed Mar 2, 2023
1 parent ba5e17e commit 8b6a6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 8b6a6fe

Please sign in to comment.