mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
add comment
This commit is contained in:
parent
13cf395942
commit
cda794a2bc
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ function NtlmClient(credentials, AxiosConfig) {
|
||||||
switch (_b.label) {
|
switch (_b.label) {
|
||||||
case 0:
|
case 0:
|
||||||
error = err.response;
|
error = err.response;
|
||||||
|
// The header may look like this: `Negotiate, NTLM, Basic realm="itsahiddenrealm.example.net"`Add commentMore actions
|
||||||
|
// so extract the 'NTLM' part first
|
||||||
const ntlmheader = error.headers['www-authenticate'].split(',').find(_ => _.match(/ *NTLM/))?.trim() || '';
|
const ntlmheader = error.headers['www-authenticate'].split(',').find(_ => _.match(/ *NTLM/))?.trim() || '';
|
||||||
if (!(error && error.status === 401
|
if (!(error && error.status === 401
|
||||||
&& error.headers['www-authenticate']
|
&& error.headers['www-authenticate']
|
||||||
|
|
Loading…
Add table
Reference in a new issue