Skip to content

Commit 54f1ce8

Browse files
committed
sending basic only if proxy is of basic auth
1 parent b6433d2 commit 54f1ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/grizzly/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyAsyncHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ private boolean sendAsGrizzlyRequest(final Request request,
914914
requestPacket.setHeader(Header.ProxyConnection, "keep-alive");
915915
}
916916

917-
if (proxy.getPrincipal() != null) {
917+
if (proxy.getPrincipal() != null && proxy.isBasic()) {
918918
requestPacket.setHeader(Header.ProxyAuthorization, AuthenticatorUtils.computeBasicAuthentication(proxy));
919919
}
920920

0 commit comments

Comments
 (0)