Skip to content

Commit de6030e

Browse files
author
Stephane Landelle
committed
Minor clean up
1 parent e966f74 commit de6030e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

api/src/main/java/org/asynchttpclient/util/AsyncHttpProviderUtils.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,7 @@ public final static URI createNonEmptyPathURI(String u) {
6565
}
6666

6767
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;
68+
return uri.getScheme() + "://" + getAuthority(uri);
7569
}
7670

7771
public final static String getAuthority(URI uri) {

0 commit comments

Comments
 (0)