Minor just in case update for an Issue #117

This commit is contained in:
Miroslav Stampar 2012-07-23 14:46:43 +02:00
parent c6b724489b
commit 63bf99ce77

View File

@ -124,6 +124,10 @@ class Connect:
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():
retVal = conn.read()
else:
while True:
_ = conn.read(MAX_CONNECTION_CHUNK_SIZE)
if len(_) == MAX_CONNECTION_CHUNK_SIZE: