[FIX] x-instance-id header prop is case insensitive
This commit is contained in:
parent
2fd0b86d68
commit
bef34f7f96
|
@ -84,7 +84,7 @@ const RocketChat = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_hasInstanceId(headers) {
|
_hasInstanceId(headers) {
|
||||||
return !!Object.keys(headers).findIndex(item => item.toLowerCase() === 'x-instance-id');
|
return !!headers[Object.keys(headers).find(item => item.toLowerCase() === 'x-instance-id')];
|
||||||
},
|
},
|
||||||
async testServer(url) {
|
async testServer(url) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue