Fix setOptions cache poisoning when one node's auth load fails

This commit is contained in:
Matt Hill 2026-05-18 12:29:15 -06:00 committed by Suheb
parent 266167cf53
commit 42cb3c76e8
2 changed files with 4 additions and 4 deletions

View file

@ -192,11 +192,11 @@ export class CommonService {
}
};
this.setOptions = (req) => {
if (this.nodes[0].authentication.options && this.nodes[0].authentication.options.headers) {
return;
}
if (this.nodes && this.nodes.length > 0) {
this.nodes.forEach((node) => {
if (node.authentication.options && node.authentication.options.headers) {
return;
}
node.authentication.options = {
url: '',
rejectUnauthorized: false,