Closed alecthomas closed 11 years ago
Also necessary for net/http/pprof`, and so on.
I'd suggest having http.DefaultServeMux
as enabled by default, but that's a bit more of a significant change to the default behaviour of goweb. Your call.
I subsequently realised that I could simply do:
goweb.MapFunc("*", func(c *goweb.Context) {
http.DefaultServeMux.ServeHTTP(c.ResponseWriter, c.Request)
})
So ... just imagine this whole pull request didn't exist!
Necessary to support packages like expvar.