Use URL.getUserInfo consistently
@@ -46,7 +46,7 @@ private JreHttpClient(URL url) {
}
this.url = url;
- String authority = url.getAuthority();
+ String authority = url.getUserInfo();
if (authority == null || "".equals(authority)) {
auth = null;
} else {
