Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7411052

Browse files
committed
minor update regarding last commit
1 parent 042e3f7 commit 7411052

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/basicauthhandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def reset_retry_count(self):
2626

2727
def http_error_auth_reqed(self, auth_header, host, req, headers):
2828
# Reset the retry counter once for each request.
29-
if req not in self.retried_req:
30-
self.retried_req.append(req)
29+
if hash(req) not in self.retried_req:
30+
self.retried_req.append(hash(req))
3131
self.retried = 0
3232
return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed(
3333
self, auth_header, host, req, headers)

0 commit comments

Comments
 (0)