Minor patch

This commit is contained in:
Miroslav Stampar
2017-09-17 23:12:57 +02:00
parent 6a8ea0557c
commit 24c261d630
3 changed files with 6 additions and 4 deletions

View File

@@ -22,7 +22,9 @@ def detect(get_page):
page, _, code = get_page(get=vector)
if code >= 400 or IDS_WAF_CHECK_PAYLOAD in vector and code is None:
kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in headers.headers or [] if not _.startswith("URI")), page)
if code is not None:
kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in headers.headers or [] if not _.startswith("URI")), page)
retval = True
break