Skip to content

Commit 5f448ed

Browse files
committed
nit: use Uri#toRelativeUrl
1 parent 58dd868 commit 5f448ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/main/java/org/asynchttpclient/netty/request/NettyRequestFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ private String requestUri(Uri uri, ProxyServer proxyServer, boolean connect) {
233233

234234
} else {
235235
// direct connection to target host or tunnel already connected: only path and query
236-
String path = getNonEmptyPath(uri);
237-
return isNonEmpty(uri.getQuery()) ? path + "?" + uri.getQuery() : path;
236+
return uri.toRelativeUrl();
238237
}
239238
}
240239

0 commit comments

Comments
 (0)