Show More
@@ -256,7 +256,11 b' class httprepository(remoterepository):' | |||
|
256 | 256 | if user: |
|
257 | 257 | ui.debug(_('http auth: user %s, password %s\n') % |
|
258 | 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 | 265 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), |
|
262 | 266 | httpdigestauthhandler(passmgr))) |
General Comments 0
You need to be logged in to leave comments.
Login now