Fix exit on dynamic auth and overwrite of portable
parent
cf4a97ac2c
commit
d6095d73f7
|
@ -192,8 +192,6 @@ public class InstallConfig {
|
|||
this.authUsername = basicAuthUser;
|
||||
this.authPassword = basicAuthPassword;
|
||||
this.allowAskForBasicAuth = askForBasicAuth;
|
||||
|
||||
offline = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -213,8 +211,6 @@ public class InstallConfig {
|
|||
this.urlEnding = end;
|
||||
this.addVersion = true;
|
||||
this.allowAskForBasicAuth = askForBasicAuth;
|
||||
|
||||
offline = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -927,7 +927,7 @@ public class Installer {
|
|||
// check if basic auth is required
|
||||
if (con.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) {
|
||||
if (conf.authUsername == null || conf.authPassword == null) {
|
||||
if (!askForAuth) { logger.log("e", "Baisc authentication required for downloading the file \"" + serverURL + "\"", ""); System.exit(-1); }
|
||||
if (!askForAuth) { logger.log("e", "Baisc authentication required for downloading the file \"" + serverURL + "\"", ""); error = -40; return null; }
|
||||
|
||||
char[] username = conf.authUsername;
|
||||
char[] password = conf.authPassword;
|
||||
|
|
Loading…
Reference in New Issue