Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added http health check endpoint. #137

Merged
merged 5 commits into from
Jan 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Explicitly return http status 200 in health check endpoint.
  • Loading branch information
Kugelschieber committed Jan 25, 2019
commit 29bf8198fd122b95c534486cfbd4cd54b40a8ce8
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ func webUpdatePost(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

// Endpoint used to check the readiness and/or liveness (health) of the server.
func healthCheck(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
// does nothing except returning status code 200 (which it does by default)
w.WriteHeader(http.StatusOK)
}