Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-auth.py.out @ 15024:0f1311e829c9 stable
http: strip credentials from urllib2 manager URIs (issue2885)
urllib2 password manager does not strip credentials from URIs registered with
add_password() and compare them with stripped URIs in find_password(). Remove
credentials from URIs returned by util.url.authinfo(). It sometimes works when
no port was specified as the URI host is registered too.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 05 Aug 2011 21:05:40 +0200 |
parents | 4a43e23b8c55 |
children | 31c37e703cee |
line wrap: on
line diff
--- a/tests/test-hgweb-auth.py.out Thu Aug 04 19:41:23 2011 +0300 +++ b/tests/test-hgweb-auth.py.out Fri Aug 05 21:05:40 2011 +0200 @@ -189,3 +189,8 @@ CFG: {x.password: xpassword, x.prefix: http://example.org/foo/bar, x.username: None, y.password: ypassword, y.prefix: http://example.org/foo, y.username: y} URI: http://y@example.org/foo/bar ('y', 'xpassword') + +*** Test urllib2 and util.url + +URIs: http://user@example.com:8080/foo http://example.com:8080/foo +('user', '')