mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Potential fix for an Issue #171
This commit is contained in:
parent
f6716cf7c0
commit
dbce417cdd
|
@ -126,9 +126,9 @@ class Connect:
|
|||
def __connReadProxy(conn):
|
||||
retVal = ""
|
||||
|
||||
if not kb.dnsMode:
|
||||
if conn.headers.getheader(HTTPHEADER.CONTENT_ENCODING, "").lower() in ("gzip", "deflate")\
|
||||
or "text" not in conn.headers.getheader(HTTPHEADER.CONTENT_TYPE, "").lower():
|
||||
if not kb.dnsMode and conn:
|
||||
if conn.headers and (conn.headers.getheader(HTTPHEADER.CONTENT_ENCODING, "").lower() in ("gzip", "deflate")\
|
||||
or "text" not in conn.headers.getheader(HTTPHEADER.CONTENT_TYPE, "").lower()):
|
||||
retVal = conn.read()
|
||||
else:
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue
Block a user