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 042e3f7 commit 7411052Copy full SHA for 7411052
1 file changed
lib/request/basicauthhandler.py
@@ -26,8 +26,8 @@ def reset_retry_count(self):
26
27
def http_error_auth_reqed(self, auth_header, host, req, headers):
28
# Reset the retry counter once for each request.
29
- if req not in self.retried_req:
30
- self.retried_req.append(req)
+ if hash(req) not in self.retried_req:
+ self.retried_req.append(hash(req))
31
self.retried = 0
32
return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed(
33
self, auth_header, host, req, headers)
0 commit comments