Cosmetic fix

This commit is contained in:
Bernardo Damele 2010-10-15 12:46:41 +00:00
parent dcb9c2103a
commit bf56f8c63c

View File

@ -340,14 +340,14 @@ def checkNullConnection():
if not page and 'Content-Length' in headers: if not page and 'Content-Length' in headers:
kb.nullConnection = "HEAD" kb.nullConnection = "HEAD"
infoMsg = "null connection is supported with HEAD header" infoMsg = "NULL connection is supported with HEAD header"
logger.info(infoMsg) logger.info(infoMsg)
else: else:
page, headers = Request.getPage(auxHeaders={"Range":"bytes=-1"}) page, headers = Request.getPage(auxHeaders={"Range":"bytes=-1"})
if page and len(page) == 1 and 'Content-Range' in headers: if page and len(page) == 1 and 'Content-Range' in headers:
kb.nullConnection = "Range" kb.nullConnection = "Range"
infoMsg = "null connection is supported with GET header " infoMsg = "NULL connection is supported with GET header "
infoMsg += "'%s'" % kb.nullConnection infoMsg += "'%s'" % kb.nullConnection
logger.info(infoMsg) logger.info(infoMsg)
except sqlmapConnectionException, errMsg: except sqlmapConnectionException, errMsg: