Skip to content

Commit

Permalink
Add health headers
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Nov 27, 2024
1 parent 0ca28d7 commit 680e50f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func (s *Server) listenHealthz() {
mux := http.NewServeMux()
mux.HandleFunc("/grpchealthz", func(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(http.StatusNoContent)
w.Header().Set("grpc-status", "12")
w.Header().Set("grpc-message", "unimplemented")
})

health := &http.Server{
Expand Down

0 comments on commit 680e50f

Please sign in to comment.