Show More
@@ -256,7 +256,11 b' class httprepository(remoterepository):' | |||||
256 | if user: |
|
256 | if user: | |
257 | ui.debug(_('http auth: user %s, password %s\n') % |
|
257 | ui.debug(_('http auth: user %s, password %s\n') % | |
258 | (user, passwd and '*' * len(passwd) or 'not set')) |
|
258 | (user, passwd and '*' * len(passwd) or 'not set')) | |
259 | passmgr.add_password(None, host, user, passwd or '') |
|
259 | netloc = host | |
|
260 | if port: | |||
|
261 | netloc += ':' + port | |||
|
262 | # Python < 2.4.3 uses only the netloc to search for a password | |||
|
263 | passmgr.add_password(None, (self._url, netloc), user, passwd or '') | |||
260 |
|
264 | |||
261 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), |
|
265 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), | |
262 | httpdigestauthhandler(passmgr))) |
|
266 | httpdigestauthhandler(passmgr))) |
General Comments 0
You need to be logged in to leave comments.
Login now