From cda794a2bc19db8a9e579e933199fc0f7da0c083 Mon Sep 17 00:00:00 2001 From: Florian Feka Date: Mon, 2 Jun 2025 16:21:33 +0200 Subject: [PATCH] add comment --- server/modules/axios-ntlm/lib/ntlmClient.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/axios-ntlm/lib/ntlmClient.js b/server/modules/axios-ntlm/lib/ntlmClient.js index a0a96ab3e..9dab32553 100644 --- a/server/modules/axios-ntlm/lib/ntlmClient.js +++ b/server/modules/axios-ntlm/lib/ntlmClient.js @@ -89,6 +89,8 @@ function NtlmClient(credentials, AxiosConfig) { switch (_b.label) { case 0: 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() || ''; if (!(error && error.status === 401 && error.headers['www-authenticate']