Skip to content

Commit 282298d

Browse files
committed
Merge pull request AsyncHttpClient#1164 from malaporte/fix-npe-in-jdk-proxy
Fix proxy when using JDK provider
2 parents fbbb2bf + e17641c commit 282298d

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)