cleaned up code

This commit is contained in:
Christopher Pickering
2022-06-14 08:49:36 -05:00
parent 98f3c126e5
commit 660005b143
2 changed files with 5 additions and 10 deletions

View File

@@ -279,17 +279,12 @@ class Monitor extends BeanModel {
if (this.auth_method === "ntlm") {
options.httpsAgent.keepAlive = true;
let ntlmOptions = {
res = await httpNtlm(options, {
username: this.basic_auth_user,
password: this.basic_auth_pass,
domain: this.authDomain,
};
if (this.authWorkstation) {
ntlmOptions.workstation = this.authWorkstation;
}
res = await httpNtlm(options, ntlmOptions);
workstation: this.authWorkstation ? this.authWorkstation : undefined
});
} else {
res = await axiosClient.request(options);