Skip to content

Commit 76c6320

Browse files
author
pgaref
committed
Allowing proxy redirects - we need to be transparent here maybe add a configurate redirection limit
1 parent e86d44a commit 76c6320

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

http_request_randomizer/requests/proxy/requestProxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def generate_proxied_request(self, url, method="GET", params={}, data={}, header
9999

100100
self.logger.debug("Using proxy: {0}".format(str(self.current_proxy)))
101101
request = requests.request(method, url, proxies={"http": self.current_proxy},
102-
headers=headers, data=data, params=params, timeout=req_timeout, allow_redirects=False)
102+
headers=headers, data=data, params=params, timeout=req_timeoutg)
103103
# Avoid HTTP request errors
104104
if request.status_code == 409:
105105
raise ConnectionError("HTTP Response [409] - Possible Cloudflare DNS resolution error")

0 commit comments

Comments
 (0)