aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/pprof/pprof.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/pprof/pprof.go b/plugin/pprof/pprof.go
index ddf5ab2df..822e6e222 100644
--- a/plugin/pprof/pprof.go
+++ b/plugin/pprof/pprof.go
@@ -31,6 +31,9 @@ func (h *handler) Startup() error {
h.ln = ln
h.mux = http.NewServeMux()
+ h.mux.HandleFunc(path, func(rw http.ResponseWriter, req *http.Request) {
+ http.Redirect(rw, req, path+"/", http.StatusFound)
+ })
h.mux.HandleFunc(path+"/", pp.Index)
h.mux.HandleFunc(path+"/cmdline", pp.Cmdline)
h.mux.HandleFunc(path+"/profile", pp.Profile)