Skip to content

Commit

Permalink
fix: pprof Index path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Nov 24, 2023
1 parent bb4d4fa commit 81f9450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/http/middleware/pprof_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (h *pprofHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
pprof.Trace(rw, req)
return
default:
// trim /.sys for make pprof.Index work
req.URL.Path = req.URL.Path[len("/.sys"):]
pprof.Index(rw, req)
return
}
Expand Down

0 comments on commit 81f9450

Please sign in to comment.