Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e071f commit c40ddedCopy full SHA for c40dded
1 file changed
lib/request/connect.py
@@ -136,8 +136,9 @@ def __connReadProxy(conn):
136
retVal = ""
137
138
if not kb.dnsMode and conn:
139
- if conn.headers and (conn.headers.getheader(HTTPHEADER.CONTENT_ENCODING, "").lower() in ("gzip", "deflate")\
140
- 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")\
141
+ or "text" not in headers.getheader(HTTPHEADER.CONTENT_TYPE, "").lower()):
142
retVal = conn.read()
143
else:
144
while True:
0 commit comments