diff --git a/matcher.go b/matcher.go index f83abcfa..94d6c5ec 100644 --- a/matcher.go +++ b/matcher.go @@ -50,3 +50,12 @@ func inspectRequest(r *http.Request, cfg *compiledConfig) matchResult { return result } +func containsToken(value string, tokens []string) bool { + for _, token := range tokens { + if strings.Contains(value, token) { + return true + } + } + return false +} +