add more tests

This commit is contained in:
kevin
2020-08-21 23:09:35 +08:00
parent 9c9f80518f
commit 2b1466e41e
2 changed files with 20 additions and 1 deletions

View File

@@ -209,6 +209,6 @@ func (s *engine) use(middleware Middleware) {
func convertMiddleware(ware Middleware) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(ware(next.ServeHTTP))
return ware(next.ServeHTTP)
}
}