]> Cypherpunks repositories - gostls13.git/commit
net/http/pprof: attach handlers using http.HandleFunc
authorTerin Stock <terinjokes@gmail.com>
Tue, 17 Oct 2017 00:34:35 +0000 (17:34 -0700)
committerTom Bergan <tombergan@google.com>
Mon, 30 Oct 2017 18:46:16 +0000 (18:46 +0000)
commit01c144c410b09d8b56d40e7e9c54fface204aa29
treed42978955794490391d863edb5d5dbaf1182f3e0
parent877387e38a734db8a2a151ddd4af7ba53bcf6460
net/http/pprof: attach handlers using http.HandleFunc

Simplify how pprof attaches the handlers to the DefaultMux by using
http.HandleFunc instead of manually wrapping the handlers in
a http.HandlerFunc.

Change-Id: I65db262ebb2e29e4b6f30df9d2688f5daf782c29
Reviewed-on: https://go-review.googlesource.com/71251
Reviewed-by: Sam Whited <sam@samwhited.com>
Reviewed-by: Tom Bergan <tombergan@google.com>
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/pprof/pprof.go