Skip to content

Commit 6a2fc79

Browse files
committed
don't use full url as host
in dfe3f3d AHC started using full url rather than path for proxy host, but don't know why since issue link now broken. using full url causes urls like http://wgr_upd_en.livejournal.com/data/rss (which has proxy on other end) to fail with invalid version.
1 parent 7dc0ce0 commit 6a2fc79

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,6 @@ private static HttpRequest construct(AsyncHttpClientConfig config,
511511
HttpRequest nettyRequest;
512512
if (m.equals(HttpMethod.CONNECT)) {
513513
nettyRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_0, m, AsyncHttpProviderUtils.getAuthority(uri));
514-
} else if (config.getProxyServer() != null || request.getProxyServer() != null) {
515-
nettyRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1, m, uri.toString());
516514
} else {
517515
StringBuilder path = new StringBuilder(uri.getRawPath());
518516
if (uri.getQuery() != null) {

0 commit comments

Comments
 (0)