From 7411052456debdedb2027330b0d257cf1fc8a685 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 5 Jan 2011 12:09:57 +0000 Subject: [PATCH] minor update regarding last commit --- lib/request/basicauthhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/basicauthhandler.py b/lib/request/basicauthhandler.py index 2da733ef5..cb6f63eea 100644 --- a/lib/request/basicauthhandler.py +++ b/lib/request/basicauthhandler.py @@ -26,8 +26,8 @@ class SmartHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler): def http_error_auth_reqed(self, auth_header, host, req, headers): # Reset the retry counter once for each request. - if req not in self.retried_req: - self.retried_req.append(req) + if hash(req) not in self.retried_req: + self.retried_req.append(hash(req)) self.retried = 0 return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed( self, auth_header, host, req, headers)