diff --git a/web/router.go b/web/router.go index 277f524..c291294 100644 --- a/web/router.go +++ b/web/router.go @@ -57,13 +57,11 @@ type router struct { notFound Handler machine *routeMachine } + type netHTTPWrap struct { http.Handler } -func (h netHTTPWrap) ServeHTTP(w http.ResponseWriter, r *http.Request) { - h.Handler.ServeHTTP(w, r) -} func (h netHTTPWrap) ServeHTTPC(c C, w http.ResponseWriter, r *http.Request) { h.Handler.ServeHTTP(w, r) }