diff --git a/jdk/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java b/jdk/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java index 390898292f0..41f55998973 100644 --- a/jdk/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java +++ b/jdk/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java @@ -206,7 +206,8 @@ public class AuthenticationHeader { if(v == null) { if ((v=schemes.get ("digest")) == null) { - if (((v=schemes.get("ntlm"))==null)) { + if (!NTLMAuthenticationProxy.supported + || ((v=schemes.get("ntlm"))==null)) { v = schemes.get ("basic"); } }