@@ -5000,25 +5000,25 @@ FilterContainer.prototype.realmMatchString = function(
50005000 let tokenHash = DOT_TOKEN_HASH ;
50015001 if (
50025002 ( ibucket00 !== 0 ) &&
5003- ( iunit = bucket00 . get ( tokenHash ) || 0 ) !== 0 &&
5003+ ( iunit = bucket00 . get ( DOT_TOKEN_HASH ) || 0 ) !== 0 &&
50045004 ( filterMatch ( iunit ) === true )
50055005 ) {
50065006 catBits = catBits00 ;
50075007 } else if (
50085008 ( ibucket01 !== 0 ) &&
5009- ( iunit = bucket01 . get ( tokenHash ) || 0 ) !== 0 &&
5009+ ( iunit = bucket01 . get ( DOT_TOKEN_HASH ) || 0 ) !== 0 &&
50105010 ( filterMatch ( iunit ) === true )
50115011 ) {
50125012 catBits = catBits01 ;
50135013 } else if (
50145014 ( ibucket10 !== 0 ) &&
5015- ( iunit = bucket10 . get ( tokenHash ) || 0 ) !== 0 &&
5015+ ( iunit = bucket10 . get ( DOT_TOKEN_HASH ) || 0 ) !== 0 &&
50165016 ( filterMatch ( iunit ) === true )
50175017 ) {
50185018 catBits = catBits10 ;
50195019 } else if (
50205020 ( ibucket11 !== 0 ) &&
5021- ( iunit = bucket11 . get ( tokenHash ) || 0 ) !== 0 &&
5021+ ( iunit = bucket11 . get ( DOT_TOKEN_HASH ) || 0 ) !== 0 &&
50225022 ( filterMatch ( iunit ) === true )
50235023 ) {
50245024 catBits = catBits11 ;
@@ -5200,12 +5200,16 @@ FilterContainer.prototype.matchHeaders = function(fctxt, headers) {
52005200 $httpHeaders . init ( headers ) ;
52015201
52025202 let r = 0 ;
5203- if ( this . realmMatchString ( HEADERS | BlockImportant , typeBits , partyBits ) ) {
5203+ if ( this . realmMatchString ( HEADERS | BlockAction , typeBits , partyBits ) ) {
52045204 r = 1 ;
5205- } else if ( this . realmMatchString ( HEADERS | BlockAction , typeBits , partyBits ) ) {
5206- r = this . realmMatchString ( HEADERS | AllowAction , typeBits , partyBits )
5207- ? 2
5208- : 1 ;
5205+ }
5206+ if ( r !== 0 && $isBlockImportant !== true ) {
5207+ if ( this . realmMatchString ( HEADERS | AllowAction , typeBits , partyBits ) ) {
5208+ r = 2 ;
5209+ if ( this . realmMatchString ( HEADERS | BlockImportant , typeBits , partyBits ) ) {
5210+ r = 1 ;
5211+ }
5212+ }
52095213 }
52105214
52115215 $httpHeaders . reset ( ) ;
0 commit comments