Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite17641c

Browse files
committed
Fix proxy when using JDK provider (presently always throws a NullPointerException when proxy is not bypassed).
1 parentfbbb2bf commite17641c

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
ProxyServerproxyServer =ProxyUtils.getProxyServer(config,request);
477477
booleanavoidProxy =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)

[8]ページ先頭

©2009-2025 Movatter.jp