diff --git a/goat.go b/goat.go index 3da7684..d01dd76 100644 --- a/goat.go +++ b/goat.go @@ -12,7 +12,7 @@ func New() *Router { r.index = make(map[string]string) r.prefix = "/" r.router = httprouter.New() - r.router.NotFound = r.notFoundHandler + r.router.NotFound = http.HandlerFunc(r.notFoundHandler) return r }