Skip to content

Commit

Permalink
health: return "ok" response instead of 204
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Jun 30, 2017
1 parent e30b3c3 commit 888ec56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion health/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 888ec56

Please sign in to comment.