mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-18 05:27:11 +00:00
Be sure to return at least one of the candidates
This commit is contained in:
committed by
Noah Levitt
parent
704ec62487
commit
309847cc40
@@ -192,13 +192,12 @@ public class HTMLForm {
|
||||
if (candidateUsernameInputs.size() == 1) return candidateUsernameInputs.get(0);
|
||||
|
||||
for (FormInput input : candidateUsernameInputs) {
|
||||
|
||||
if (input.name != null && input.name.toLowerCase().indexOf("login") != -1) {
|
||||
return input;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
return candidateUsernameInputs.get(0);
|
||||
}
|
||||
|
||||
public HttpEntity asFormDataMultiPartEntity(String username, String password) {
|
||||
|
||||
Reference in New Issue
Block a user