mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 22:26:01 +00:00
Don't call setRealm so other realms that can be used.
This commit is contained in:
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user