[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) {
|
||||
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) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue