mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
bug fix
This commit is contained in:
parent
02a14d4c45
commit
36ef8ca575
1 changed files with 4 additions and 1 deletions
|
|
@ -347,7 +347,10 @@ class Connect:
|
|||
if kb.nullConnection == "HEAD":
|
||||
pageLength = int(headers['Content-Length'])
|
||||
elif kb.nullConnection == "Range":
|
||||
if 'Content-Range' in headers:
|
||||
pageLength = int(headers['Content-Range'][headers['Content-Range'].find('/') + 1:])
|
||||
elif 'content-length' in headers: #sometimes
|
||||
pageLength = int(headers['content-length'])
|
||||
|
||||
if not pageLength:
|
||||
page, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, response=response, raise404=raise404)
|
||||
|
|
|
|||
Loading…
Reference in a new issue