1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 09:00:55 +00:00

miss filter *

This commit is contained in:
astaxie 2013-09-19 23:14:47 +08:00
parent a85d91b4bd
commit 95307a3d78

View File

@ -15,6 +15,9 @@ func (mr *FilterRouter) ValidRouter(router string) bool {
if mr.pattern == "" {
return true
}
if mr.pattern == "*" {
return true
}
if router == mr.pattern {
return true
}