Fixed a bug with all field on matching

dev
Ice3man543 2020-04-06 00:03:55 +05:30
parent 042f77c9a0
commit 9d905e1f8e
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ func (m *Matcher) Match(resp *http.Response, body, headers string) bool {
} else if m.part == HeaderPart {
return m.matchRegex(headers)
} else {
if !m.matchRegex(headers) {
return false
if m.matchRegex(headers) {
return true
}
return m.matchRegex(body)
}