##// END OF EJS Templates
url: avoid re-issuing incorrect password (issue3210)...
Kim Randell -
r29639:6fd751fa stable
parent child Browse files
Show More
@@ -451,7 +451,7 b' class httpbasicauthhandler(urlreq.httpba'
451 if pw is not None:
451 if pw is not None:
452 raw = "%s:%s" % (user, pw)
452 raw = "%s:%s" % (user, pw)
453 auth = 'Basic %s' % base64.b64encode(raw).strip()
453 auth = 'Basic %s' % base64.b64encode(raw).strip()
454 if req.headers.get(self.auth_header, None) == auth:
454 if req.get_header(self.auth_header, None) == auth:
455 return None
455 return None
456 self.auth = auth
456 self.auth = auth
457 req.add_unredirected_header(self.auth_header, auth)
457 req.add_unredirected_header(self.auth_header, auth)
General Comments 0
You need to be logged in to leave comments. Login now