Fix #489: ARM arch detection & create test that simulates HTTP headers sent from an Apple silicon

This commit is contained in:
Faisal Salman
2023-03-25 07:21:17 +07:00
parent 3af8e1e272
commit e70d09a1f8
2 changed files with 31 additions and 1 deletions

View File

@@ -1056,7 +1056,7 @@
var archName = uaCH[ARCHITECTURE];
if (archName) {
if (archName && uaCH[BITNESS] == '64') archName += '64';
rgxMapper.call(this.data, archName, rgxMap);
rgxMapper.call(this.data, archName + ';', rgxMap);
}
break;
case UA_DEVICE: