[FIX] x-instance-id header prop is case insensitive

This commit is contained in:
diegolmello 2018-11-28 10:10:22 -02:00
parent 2fd0b86d68
commit bef34f7f96
1 changed files with 1 additions and 1 deletions

View File

@ -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 {