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 8bb9849 commit 8bbd4d3Copy full SHA for 8bbd4d3
src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java
@@ -74,13 +74,7 @@ public final static URI createNonEmptyPathURI(String u) {
74
}
75
76
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;
+ return uri.getScheme() + "://" + getAuthority(uri);
84
85
86
public final static String getAuthority(URI uri) {
0 commit comments