Fix case sensitivity of X-Signal-Timestamp regexp
This commit is contained in:
parent
3d82479aca
commit
fe14333e74
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ export default class MessageReceiver
|
|||
let it = headers.length;
|
||||
// eslint-disable-next-line no-plusplus
|
||||
while (--it >= 0) {
|
||||
const match = headers[it].match(/^X-Signal-Timestamp:\s*(\d+)\s*$/);
|
||||
const match = headers[it].match(/^X-Signal-Timestamp:\s*(\d+)\s*$/i);
|
||||
if (match && match.length === 2) {
|
||||
const timestamp = Number(match[1]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue