From d0e303ca19bf35b876ddcdff48e658ea5eeb0bc7 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 10 Apr 2025 07:32:09 -0400 Subject: [PATCH] Fix regression in response header filtering Related commit: https://github.com/gorhill/uBlock/commit/8b696a691a0871da8200d1806300842d988a4326 --- src/js/httpheader-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/httpheader-filtering.js b/src/js/httpheader-filtering.js index 9d09543ab..c5aa918ec 100644 --- a/src/js/httpheader-filtering.js +++ b/src/js/httpheader-filtering.js @@ -145,8 +145,8 @@ httpheaderFilteringEngine.apply = function(fctxt, headers) { } // Split filters in different groups - const filters = new Map(); - const exceptions = new Map(); + const filters = new Set(); + const exceptions = new Set(); for ( const s of all ) { const selector = s.slice(1); if ( s.charCodeAt(0) === 0x2D /* - */ ) {