mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-10 10:22:41 +01:00
Fix for an Issue #401
This commit is contained in:
parent
6bacbdb031
commit
5c099efccc
1 changed files with 2 additions and 2 deletions
|
|
@ -1051,7 +1051,7 @@ def checkNullConnection():
|
|||
try:
|
||||
page, headers, _ = Request.getPage(method=HTTPMETHOD.HEAD)
|
||||
|
||||
if not page and HTTPHEADER.CONTENT_LENGTH in headers:
|
||||
if not page and HTTPHEADER.CONTENT_LENGTH in (headers or {}):
|
||||
kb.nullConnection = NULLCONNECTION.HEAD
|
||||
|
||||
infoMsg = "NULL connection is supported with HEAD header"
|
||||
|
|
@ -1059,7 +1059,7 @@ def checkNullConnection():
|
|||
else:
|
||||
page, headers, _ = Request.getPage(auxHeaders={HTTPHEADER.RANGE: "bytes=-1"})
|
||||
|
||||
if page and len(page) == 1 and HTTPHEADER.CONTENT_RANGE in headers:
|
||||
if page and len(page) == 1 and HTTPHEADER.CONTENT_RANGE in (headers or {}):
|
||||
kb.nullConnection = NULLCONNECTION.RANGE
|
||||
|
||||
infoMsg = "NULL connection is supported with GET header "
|
||||
|
|
|
|||
Loading…
Reference in a new issue