Skip to content

Commit ca242ff

Browse files
authored
fix #3251 (#3254)
1 parent 42e3c5f commit ca242ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ghttp/ghttp_server_pprof.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
// StartPProfServer starts and runs a new server for pprof.
2727
func StartPProfServer(port int, pattern ...string) {
2828
s := GetServer(defaultPProfServerName)
29-
s.EnablePProf()
29+
s.EnablePProf(pattern...)
3030
s.SetPort(port)
3131
s.Run()
3232
}

0 commit comments

Comments
 (0)