Skip to content

Commit

Permalink
fix(http): add pprof link in http web interface (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad authored Oct 2, 2024
1 parent 4b98b7a commit a91838c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (s *Server) StartServer(grpcServer string) error {
http.HandleFunc("/debug/pprof/profile", pprof.Profile)
http.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
http.HandleFunc("/debug/pprof/trace", pprof.Trace)
s.router.HandleFunc("/debug/pprof", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/debug/pprof/", http.StatusPermanentRedirect)
})
}

if s.enableAuth {
Expand Down

0 comments on commit a91838c

Please sign in to comment.