Don't call setRealm so other realms that can be used.

This commit is contained in:
Hunter Stern
2015-08-14 13:01:54 -07:00
parent 4e22f1f809
commit f097939a1c
@@ -127,9 +127,8 @@ public class HttpAuthenticationCredential extends Credential {
for (Iterator<Credential> i = rfc2617Credentials.iterator(); i.hasNext();) {
HttpAuthenticationCredential c = (HttpAuthenticationCredential)i.next();
//if no realm specified, use the one returned by the server
// empty realm field means the credential can be used for any realm specified by server
if (c.getRealm() == null || c.getRealm().isEmpty()) {
c.setRealm(realm);
result = c;
break;
}