Show More
@@ -143,6 +143,7 b' test-histedit-obsolete.t' | |||
|
143 | 143 | test-histedit-outgoing.t |
|
144 | 144 | test-histedit-templates.t |
|
145 | 145 | test-http-branchmap.t |
|
146 | test-http-bundle1.t | |
|
146 | 147 | test-http-clone-r.t |
|
147 | 148 | test-identify.t |
|
148 | 149 | test-imports-checker.t |
@@ -67,7 +67,7 b' class passwordmgr(object):' | |||
|
67 | 67 | user, passwd = auth.get('username'), auth.get('password') |
|
68 | 68 | self.ui.debug("using auth.%s.* for authentication\n" % group) |
|
69 | 69 | if not user or not passwd: |
|
70 | u = util.url(authuri) | |
|
70 | u = util.url(pycompat.bytesurl(authuri)) | |
|
71 | 71 | u.query = None |
|
72 | 72 | if not self.ui.interactive(): |
|
73 | 73 | raise error.Abort(_('http authorization required for %s') % |
@@ -75,7 +75,7 b' class passwordmgr(object):' | |||
|
75 | 75 | |
|
76 | 76 | self.ui.write(_("http authorization required for %s\n") % |
|
77 | 77 | util.hidepassword(bytes(u))) |
|
78 | self.ui.write(_("realm: %s\n") % realm) | |
|
78 | self.ui.write(_("realm: %s\n") % pycompat.bytesurl(realm)) | |
|
79 | 79 | if user: |
|
80 | 80 | self.ui.write(_("user: %s\n") % user) |
|
81 | 81 | else: |
@@ -424,8 +424,8 b' class httpbasicauthhandler(urlreq.httpba' | |||
|
424 | 424 | user, pw = self.passwd.find_user_password( |
|
425 | 425 | realm, urllibcompat.getfullurl(req)) |
|
426 | 426 | if pw is not None: |
|
427 | raw = "%s:%s" % (user, pw) | |
|
428 | auth = 'Basic %s' % base64.b64encode(raw).strip() | |
|
427 | raw = "%s:%s" % (pycompat.bytesurl(user), pycompat.bytesurl(pw)) | |
|
428 | auth = r'Basic %s' % pycompat.strurl(base64.b64encode(raw).strip()) | |
|
429 | 429 | if req.get_header(self.auth_header, None) == auth: |
|
430 | 430 | return None |
|
431 | 431 | self.auth = auth |
General Comments 0
You need to be logged in to leave comments.
Login now