diff --git a/health_check b/health_check index 79a73f0..df5c463 100644 --- a/health_check +++ b/health_check @@ -108,7 +108,7 @@ def check_server_status(url, headers, timeout, expected_status, content = fp.read() fp.close() - if expected_regexp and not re.match(expected_regexp, content): + if expected_regexp and not re.search(expected_regexp, content): return False, 'Content did not match expected regexp.' return True, 'OK'