pprof: fix route params

This commit is contained in:
Evgeniy Kulikov 2020-05-12 11:20:00 +03:00
parent 0a55a84863
commit 39e4a770bb
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

@ -11,7 +11,7 @@ import (
func attachProfiler(r *router.Router) { func attachProfiler(r *router.Router) {
r.GET("/debug/pprof/", pprofHandler()) r.GET("/debug/pprof/", pprofHandler())
r.GET("/debug/pprof/:name/", pprofHandler()) r.GET("/debug/pprof/{name}/", pprofHandler())
} }
func pprofHandler() fasthttp.RequestHandler { func pprofHandler() fasthttp.RequestHandler {