From 41d8863d2feccdf5c25a6a21799ce1ddc4b861ea Mon Sep 17 00:00:00 2001 From: Timo Reimann Date: Tue, 5 Dec 2017 10:50:03 +0100 Subject: [PATCH] Fix pprof route order. --- api/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/debug.go b/api/debug.go index 53cc1ccf8..4ddca7c28 100644 --- a/api/debug.go +++ b/api/debug.go @@ -38,9 +38,9 @@ func (g DebugHandler) AddRoutes(router *mux.Router) { fmt.Fprint(w, "\n}\n") }) - router.Methods(http.MethodGet).PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index) router.Methods(http.MethodGet).PathPrefix("/debug/pprof/cmdline").HandlerFunc(pprof.Cmdline) router.Methods(http.MethodGet).PathPrefix("/debug/pprof/profile").HandlerFunc(pprof.Profile) router.Methods(http.MethodGet).PathPrefix("/debug/pprof/symbol").HandlerFunc(pprof.Symbol) router.Methods(http.MethodGet).PathPrefix("/debug/pprof/trace").HandlerFunc(pprof.Trace) + router.Methods(http.MethodGet).PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index) }