mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-19 16:47:16 +03:00
docs: replace links to golang.org with go.dev (#1489)
- Replace https://godoc.org with https://pkg.go.dev. - Replace https://golang.org with https://go.dev. - Replace https://golang.org/pkg with https://pkg.go.dev. - Replace https://blog.golang.org with https://go.dev/blog. - Use https://pkg.go.dev/golang.org/x/net/http2 instead of non-existing https://http2.golang.org/. - Remove trailing slashes.
This commit is contained in:
@@ -19,7 +19,7 @@ var (
|
||||
|
||||
// PprofHandler serves server runtime profiling data in the format expected by the pprof visualization tool.
|
||||
//
|
||||
// See https://golang.org/pkg/net/http/pprof/ for details.
|
||||
// See https://pkg.go.dev/net/http/pprof for details.
|
||||
func PprofHandler(ctx *fasthttp.RequestCtx) {
|
||||
ctx.Response.Header.Set("Content-Type", "text/html")
|
||||
if strings.HasPrefix(string(ctx.Path()), "/debug/pprof/cmdline") {
|
||||
|
||||
Reference in New Issue
Block a user