commit
29fd8719a8
@ -32,6 +32,7 @@
|
||||
- Feat: add token bucket ratelimit filter [4508](https://github.com/beego/beego/pull/4508)
|
||||
- Improve: Avoid ignoring mistakes that need attention [4548](https://github.com/beego/beego/pull/4548)
|
||||
- Integration: DeepSource [4560](https://github.com/beego/beego/pull/4560)
|
||||
- Integration: Remove unnecessary function call [4577](https://github.com/beego/beego/pull/4577)
|
||||
|
||||
|
||||
|
||||
|
||||
@ -294,8 +294,8 @@ func (t *Tree) Match(pattern string, ctx *context.Context) (runObject interface{
|
||||
|
||||
func (t *Tree) match(treePattern string, pattern string, wildcardValues []string, ctx *context.Context) (runObject interface{}) {
|
||||
if len(pattern) > 0 {
|
||||
i := 0
|
||||
for ; i < len(pattern) && pattern[i] == '/'; i++ {
|
||||
i, l := 0, len(pattern)
|
||||
for ; i < l && pattern[i] == '/'; i++ {
|
||||
}
|
||||
pattern = pattern[i:]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user