Skip to content

Commit b5cecbf

Browse files
author
Stephane Landelle
committed
When using a proxy, Netty provider should send relative urls once connected, not absolute ones, fix #251
1 parent 7c4ab47 commit b5cecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ private static HttpRequest construct(AsyncHttpClientConfig config,
594594
nettyRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_0, m, AsyncHttpProviderUtils.getAuthority(uri));
595595
} else {
596596
String path = null;
597-
if (proxyServer != null)
597+
if (proxyServer != null && !isSecure(uri))
598598
path = uri.toString();
599599
else if (uri.getRawQuery() != null)
600600
path = uri.getRawPath() + "?" + uri.getRawQuery();

0 commit comments

Comments
 (0)