Fix case sensitivity of X-Signal-Timestamp regexp

This commit is contained in:
Fedor Indutny 2024-02-06 14:35:29 -08:00 committed by GitHub
parent 3d82479aca
commit fe14333e74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]);