fix MatchFilterHandler

This commit is contained in:
bitterlox 2020-03-16 14:38:25 +01:00 committed by GitHub
parent 8d7aa9078f
commit 7adacd1bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,8 +172,8 @@ func MatchFilterHandler(key string, value interface{}, h Handler) Handler {
} }
for i := 0; i < len(r.Ctx); i += 2 { for i := 0; i < len(r.Ctx); i += 2 {
if r.Ctx[i] == key { if r.Ctx[i] == key && r.Ctx[i+1] == value {
return r.Ctx[i+1] == value return true
} }
} }
return false return false