prevent urllib3 from decoding content
This commit is contained in:
parent
1e1f55c9e5
commit
89daa27be2
@ -149,7 +149,7 @@ def fetch_url(url, headers=(), timeout=15, report_text=None, data=None, cookieja
|
||||
else: # Use a urllib3 pool. Cookies can't be used since urllib3 doesn't have easy support for them.
|
||||
pool = get_pool(use_tor and settings.route_tor)
|
||||
|
||||
response = pool.request(method, url, headers=headers, timeout=timeout, preload_content=False)
|
||||
response = pool.request(method, url, headers=headers, timeout=timeout, preload_content=False, decode_content=False)
|
||||
response_time = time.time()
|
||||
|
||||
content = response.read()
|
||||
|
Loading…
x
Reference in New Issue
Block a user