mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Fix for an Issue #250
This commit is contained in:
parent
93e071fc33
commit
c40dded28c
|
@ -136,8 +136,9 @@ class Connect:
|
|||
retVal = ""
|
||||
|
||||
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()):
|
||||
headers = conn.info()
|
||||
if headers and (headers.getheader(HTTPHEADER.CONTENT_ENCODING, "").lower() in ("gzip", "deflate")\
|
||||
or "text" not in headers.getheader(HTTPHEADER.CONTENT_TYPE, "").lower()):
|
||||
retVal = conn.read()
|
||||
else:
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue
Block a user