Skip to content

Commit e17641c

Browse files
committed
Fix proxy when using JDK provider (presently always throws a NullPointerException when proxy is not bypassed).
1 parent fbbb2bf commit e17641c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ private void configure(Uri uri, HttpURLConnection urlConnection, Request request
476476
ProxyServer proxyServer = ProxyUtils.getProxyServer(config, request);
477477
boolean avoidProxy = ProxyUtils.avoidProxy(proxyServer, uri.getHost());
478478
if (!avoidProxy) {
479-
urlConnection.setRequestProperty("Connection", ka);
480479
if (proxyServer.getPrincipal() != null) {
481480
urlConnection.setRequestProperty("Proxy-Authorization", AuthenticatorUtils.computeBasicAuthentication(proxyServer));
482481
}

0 commit comments

Comments
 (0)