Skip to content

Commit 39cffea

Browse files
committed
fix pprof handler
1 parent c0e69b9 commit 39cffea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ func WithNotFoundHandler(h http.Handler) Option {
6363
}
6464

6565
func debug(router *mux.Router) {
66-
router.Handle("/debug/pprof/", http.HandlerFunc(pprof.Index))
6766
router.Handle("/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
6867
router.Handle("/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
6968
router.Handle("/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
7069
router.Handle("/debug/pprof/trace", http.HandlerFunc(pprof.Trace))
70+
router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
7171
}
7272

7373
type server struct {

0 commit comments

Comments
 (0)