From d70f6bcd208380ce20d661b614b33086ec64d76c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 19 Nov 2014 20:00:43 -0600 Subject: [PATCH] loghttp: The status server should run on the default mux --- util/loghttp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/loghttp.go b/util/loghttp.go index f222c41f..f324cc21 100644 --- a/util/loghttp.go +++ b/util/loghttp.go @@ -4,6 +4,7 @@ import ( "log" "net" "net/http" + _ "net/http/pprof" ) func LoggedHTTPServe(addr string) *http.ServeMux { @@ -26,7 +27,7 @@ func LoggedHTTPServe(addr string) *http.ServeMux { log.Fatalf("error creating http conn: %#v", err) } log.Printf("starting http server on http://%s", conn.Addr()) - mux := http.NewServeMux() + mux := http.DefaultServeMux go func() { defer conn.Close() err = (&http.Server{ -- 2.44.0