Skip to content

Commit 8bbd4d3

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent 8bb9849 commit 8bbd4d3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java

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

7676
public final static String getBaseUrl(URI uri) {
77-
String url = uri.getScheme() + "://" + uri.getAuthority();
78-
int port = uri.getPort();
79-
if (port == -1) {
80-
port = getPort(uri);
81-
url += ":" + port;
82-
}
83-
return url;
77+
return uri.getScheme() + "://" + getAuthority(uri);
8478
}
8579

8680
public final static String getAuthority(URI uri) {

0 commit comments

Comments
 (0)