Ignore:
Timestamp:
2008-10-31T14:23:48+13:00 (16 years ago)
Author:
ak19
Message:

Corrected my mistake: fixed authentication to work with both wget Downloads and GLI applet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/GAuthenticator.java

    r17621 r17651  
    9191    protected PasswordAuthentication getPasswordAuthentication(String username_str, String password_str) {
    9292    if(operationMode == DOWNLOAD) { // special handling of proxy authentication popup for Wget downloads
    93 
     93       
    9494        // Don't prompt if the details were already saved for the same host and port. This is necessary
    9595        // when running wget because wget requires proxy authentication. And without the following, the
     
    107107            password_str = value.substring(value.indexOf("@") + 1);
    108108        }
     109        operationMode = REGULAR; // reset the state of the Authenticator to normal mode
    109110        return new PasswordAuthentication(username_str, password_str.toCharArray());
    110111        }
Note: See TracChangeset for help on using the changeset viewer.