fix: sort typo

pull/12916/head
Anton Zavodchikov 2021-12-21 09:13:58 +05:00
parent 6a1e62528f
commit e7e98b9180
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ fn fire_middlewares<T>(mut app T, url_words []string, middlewares map[string]str
}
}
fire_those.sort(a.path_len > b.path_len)
fire_those.sort(a.path_len < b.path_len)
for f in fire_those {
fire_middleware(mut app, f.method, f.params)