good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit 26d71cc8 authored by a's avatar a
Browse files

noot

parent e4f94d9e
No related branches found
No related tags found
No related merge requests found
Pipeline #75898 failed with stages
in 12 minutes and 50 seconds
......@@ -121,11 +121,15 @@ func (T *Server) Serve(conn *fed.Conn) {
T.log.Warn("database not found", zap.String("user", conn.User), zap.String("database", conn.Database))
return nil
}))
for j := 0; j < len(T.routes); j++ {
//for j := 0; j < len(T.routes); j++ {
for j := len(T.routes) - 1; j >= 0; j-- {
route := T.routes[j]
if route.match != nil && !route.match.Matches(conn) {
continue
}
if route.handle == nil {
continue
}
composed = route.handle.Handle(composed)
}
err := composed.Route(conn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment