diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 9f68e9993..6651f08a5 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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);