Fixed a bug with all field on matching
@@ -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)
}
