mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Fix setOptions cache poisoning when one node's auth load fails
This commit is contained in:
parent
266167cf53
commit
42cb3c76e8
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue