From 5f6d88a418584de77a4706d677b86bfed97e5abe Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 15 Oct 2010 11:17:17 +0000 Subject: [PATCH] Minor comment --- lib/controller/checks.py | 4 ++++ lib/request/connect.py | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index dac5d962c..7d3969260 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -328,6 +328,10 @@ def checkRegexp(): return False def checkNullConnection(): + """ + Reference: http://www.wisec.it/sectou.php?id=472f952d79293 + """ + infoMsg = "testing NULL connection to the target url" logger.info(infoMsg) diff --git a/lib/request/connect.py b/lib/request/connect.py index c453ca266..dc669e6fe 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -325,6 +325,7 @@ class Connect: elif kb.nullConnection == "Range": if not auxHeaders: auxHeaders = {} + auxHeaders["Range"] = "bytes=-1" _, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, raise404=raise404)