mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +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):
|
def __connReadProxy(conn):
|
||||||
retVal = ""
|
retVal = ""
|
||||||
|
|
||||||
if not kb.dnsMode:
|
if not kb.dnsMode and conn:
|
||||||
if conn.headers.getheader(HTTPHEADER.CONTENT_ENCODING, "").lower() in ("gzip", "deflate")\
|
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():
|
or "text" not in conn.headers.getheader(HTTPHEADER.CONTENT_TYPE, "").lower()):
|
||||||
retVal = conn.read()
|
retVal = conn.read()
|
||||||
else:
|
else:
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user