8005638: Less secure Authentication schemes should work when more secure schemes are not available

Reviewed-by: alanb
This commit is contained in:
Chris Hegarty 2013-01-04 11:34:17 +00:00
parent 6061c09cab
commit c994d9bc0e

View File

@ -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");
}
}