From b398bd848756aa9ee898a7e26defef77429665b2 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 5 Jul 2025 10:59:22 -0400 Subject: [PATCH] [regression] Normalize header names to lowercase Related commit: https://github.com/gorhill/uBlock/commit/408b538e75 --- src/js/static-net-filtering.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);