Skip to content

Commit

Permalink
Require GET on /healthz
Browse files Browse the repository at this point in the history
I'm gonna do things my way. Outside Hyrum's Law.
  • Loading branch information
ahamlinman committed Feb 17, 2024
1 parent 4a851db commit d2151f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/randomizer-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {
StoreFactory: storeFactory,
Logger: logger,
})
mux.Handle("/healthz",
mux.Handle("GET /healthz",
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNoContent)
}))
Expand Down

0 comments on commit d2151f2

Please sign in to comment.