From 4f489f59c28aa9d8e6114132869e49b0734bc6ec Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 11 Mar 2015 17:52:57 +1100 Subject: [PATCH] net/http/pprof: Use relative links to profiles in index html This allows /debug/pprof/ and descendents to be used through http.StripPrefix and other path rewriting handlers. Change-Id: I53673876c107bbfaf430123ead78e6524b42ac21 Reviewed-on: https://go-review.googlesource.com/7351 Reviewed-by: Andrew Gerrand --- src/net/http/pprof/pprof.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go index f5a352da41c..61ac67f3b18 100644 --- a/src/net/http/pprof/pprof.go +++ b/src/net/http/pprof/pprof.go @@ -228,11 +228,11 @@ var indexTmpl = template.Must(template.New("index").Parse(` profiles:
{{range .}} -
{{.Count}}{{.Name}} +
{{.Count}}{{.Name}} {{end}}

-full goroutine stack dump
+full goroutine stack dump
`))