We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e69b9 commit 39cffeaCopy full SHA for 39cffea
server/server.go
@@ -63,11 +63,11 @@ func WithNotFoundHandler(h http.Handler) Option {
63
}
64
65
func debug(router *mux.Router) {
66
- router.Handle("/debug/pprof/", http.HandlerFunc(pprof.Index))
67
router.Handle("/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
68
router.Handle("/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
69
router.Handle("/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
70
router.Handle("/debug/pprof/trace", http.HandlerFunc(pprof.Trace))
+ router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
71
72
73
type server struct {
0 commit comments