mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[regression] Normalize header names to lowercase
Related commit: https://github.com/gorhill/uBlock/commit/408b538e75
This commit is contained in:
parent
76b72c9e65
commit
b398bd8487
1 changed files with 2 additions and 3 deletions
|
|
@ -300,9 +300,8 @@ const $httpHeaders = {
|
|||
},
|
||||
lookup(name) {
|
||||
if ( this.parsed.size === 0 ) {
|
||||
for ( let i = 0, n = this.headers.length; i < n; i++ ) {
|
||||
const { name, value } = this.headers[i];
|
||||
this.parsed.set(name, value);
|
||||
for ( const { name, value } of this.headers ) {
|
||||
this.parsed.set(name.toLowerCase(), value);
|
||||
}
|
||||
}
|
||||
return this.parsed.get(name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue