Include URL query params in HTTP Digest

fixes #3616
This commit is contained in:
Ben Hardill
2025-06-10 10:10:46 +01:00
parent 5511b27855
commit 05b15e4d1a

View File

@@ -431,7 +431,7 @@ in your Node-RED user directory (${RED.settings.userDir}).
normalisedHeaders[k.toLowerCase()] = response.headers[k]
})
if (normalisedHeaders['www-authenticate']) {
let authHeader = buildDigestHeader(digestCreds.user,digestCreds.password, response.request.options.method, requestUrl.pathname, normalisedHeaders['www-authenticate'])
let authHeader = buildDigestHeader(digestCreds.user,digestCreds.password, response.request.options.method, requestUrl.pathname + requestUrl.search, normalisedHeaders['www-authenticate'])
options.headers.Authorization = authHeader;
}
// response.request.options.merge(options)