loghttp: The status server should run on the default mux

This commit is contained in:
Matt Joiner 2014-11-19 20:00:43 -06:00
parent dd240b66c4
commit d70f6bcd20
1 changed files with 2 additions and 1 deletions

View File

@ -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{