Patch for an Issue #304

This commit is contained in:
Miroslav Stampar
2012-12-18 09:36:26 +01:00
parent 45d6fdcdc8
commit 2b64c10710
3 changed files with 16 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
return re.search(conf.regexp, rawResponse, re.I | re.M) is not None
# HTTP code to match when the query is valid
if isinstance(code, int) and conf.code:
if conf.code:
return conf.code == code
if page: