mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-10 08:03:05 +03:00
fix for a bug reported by cclements@flatearth.net (TypeError: argument of type 'NoneType' is not iterable)
This commit is contained in:
parent
e7e23d1b79
commit
75c12c5edb
|
@ -63,6 +63,9 @@ Pierre Chifflier <pollux@debian.org> and Mark Hymers <ftpmaster@debian.org>
|
|||
for uploading and accepting the sqlmap Debian package to the official
|
||||
Debian project repository
|
||||
|
||||
Chris Clements <cclements@flatearth.net>
|
||||
for reporting a minor bug
|
||||
|
||||
Andreas Constantinides <megahz@megahz.org>
|
||||
for reporting a minor bug
|
||||
|
||||
|
|
|
@ -576,6 +576,7 @@ class Connect:
|
|||
|
||||
_, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, referer=referer, silent=silent, method=method, auxHeaders=auxHeaders, raise404=raise404)
|
||||
|
||||
if headers:
|
||||
if kb.nullConnection == NULLCONNECTION.HEAD and HTTPHEADER.CONTENT_LENGTH in headers:
|
||||
pageLength = int(headers[HTTPHEADER.CONTENT_LENGTH])
|
||||
elif kb.nullConnection == NULLCONNECTION.RANGE and HTTPHEADER.CONTENT_RANGE in headers:
|
||||
|
|
Loading…
Reference in New Issue
Block a user