Skip to content

Commit 09e46b7

Browse files
committed
Fix test for header matching when using negated value
1 parent 6e0d01c commit 09e46b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/static-net-filtering.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,7 @@ class FilterOnHeaders {
31023102
const { bad, name, not, value } = refs.$parsed;
31033103
if ( bad ) { return false; }
31043104
const headerValue = $httpHeaders.lookup(name);
3105-
if ( headerValue === undefined ) { return false; }
3105+
if ( headerValue === undefined ) { return not; }
31063106
if ( value === '' ) { return true; }
31073107
let { re } = refs.$parsed;
31083108
if ( re === undefined ) {

0 commit comments

Comments
 (0)