We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e966f74 commit de6030eCopy full SHA for de6030e
api/src/main/java/org/asynchttpclient/util/AsyncHttpProviderUtils.java
@@ -65,13 +65,7 @@ public final static URI createNonEmptyPathURI(String u) {
65
}
66
67
public final static String getBaseUrl(URI uri) {
68
- String url = uri.getScheme() + "://" + uri.getAuthority();
69
- int port = uri.getPort();
70
- if (port == -1) {
71
- port = getPort(uri);
72
- url += ":" + port;
73
- }
74
- return url;
+ return uri.getScheme() + "://" + getAuthority(uri);
75
76
77
public final static String getAuthority(URI uri) {
0 commit comments