From 888ec56f9cd767c1a815bfc2f9e7ecbf87f2e672 Mon Sep 17 00:00:00 2001 From: arekkas Date: Fri, 30 Jun 2017 00:46:33 +0200 Subject: [PATCH] health: return "ok" response instead of 204 --- health/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health/handler.go b/health/handler.go index 36f135eacc8..2a907812f24 100644 --- a/health/handler.go +++ b/health/handler.go @@ -28,7 +28,7 @@ func (h *Handler) SetRoutes(r *httprouter.Router) { // 204: emptyResponse // 500: genericError func (h *Handler) Health(rw http.ResponseWriter, r *http.Request, _ httprouter.Params) { - rw.WriteHeader(http.StatusNoContent) + rw.Write([]byte("ok")) } // swagger:route GET /health/stats health getStatistics