Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #108 from manifoldco/correct-healthz-endpoint
Browse files Browse the repository at this point in the history
Correct healthz endpoint.
  • Loading branch information
jelmersnoeck authored Aug 13, 2018
2 parents d77ba63 + 380dfbe commit 0527678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/githubrepository/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type callbackHook struct {
func (s *callbackServer) start(address string) {
hdlr := mux.NewRouter()
hdlr.HandleFunc("/payload/{owner}/{name}", s.payloadHandler)
hdlr.HandleFunc("/_healtz", s.healthzHandler)
hdlr.HandleFunc("/_healthz", s.healthzHandler)

s.srv = &http.Server{
Handler: hdlr,
Expand All @@ -78,6 +78,7 @@ func (s *callbackServer) start(address string) {
// store incoming hooks on the server object
go s.storeHooks()

log.Printf("Listening on %s", address)
log.Fatal(s.srv.ListenAndServe())
}

Expand Down

0 comments on commit 0527678

Please sign in to comment.