diff --git a/mux.go b/mux.go index 977aa52d..c279539a 100644 --- a/mux.go +++ b/mux.go @@ -254,7 +254,7 @@ func (mx *Mux) With(middlewares ...func(http.Handler) http.Handler) Router { // for a group of handlers along the same routing path that use an additional // set of middlewares. See _examples/. func (mx *Mux) Group(fn func(r Router)) Router { - im := mx.With().(*Mux) + im := mx.With() if fn != nil { fn(im) }