mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
Better implementation for #3592
This commit is contained in:
@@ -637,10 +637,11 @@ class Connect(object):
|
||||
errMsg += "authentication type and valid credentials (%d)" % code
|
||||
raise SqlmapConnectionException(errMsg)
|
||||
elif chunked and ex.code in (_http_client.METHOD_NOT_ALLOWED, _http_client.LENGTH_REQUIRED):
|
||||
errMsg = "it seems that target site doesn't support "
|
||||
errMsg += "HTTP chunking (%d). " % code
|
||||
errMsg += "Please try to rerun without the switch '--chunked'"
|
||||
raise SqlmapConnectionException(errMsg)
|
||||
warnMsg = "turning off HTTP chunked transfer encoding "
|
||||
warnMsg += "as it seems that the target site doesn't support it (%d)" % code
|
||||
singleTimeWarnMessage(warnMsg)
|
||||
conf.chunked = kwargs["chunked"] = False
|
||||
return Connect.getPage(**kwargs)
|
||||
elif ex.code == _http_client.NOT_FOUND:
|
||||
if raise404:
|
||||
errMsg = "page not found (%d)" % code
|
||||
|
||||
Reference in New Issue
Block a user