[mv3][edge] Reject responseheaders rules only for non-regex rules

Related commit:
a5091488e5
This commit is contained in:
Raymond Hill 2025-11-23 11:16:16 -05:00
parent cef428e565
commit 85db7c38c1
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -21,7 +21,9 @@
function patchRule(rule, out) {
const { condition } = rule;
if ( Array.isArray(condition.responseHeaders) ) { return; }
if ( Array.isArray(condition.responseHeaders) ) {
if ( condition.regexFilter === undefined ) { return; }
}
out.push(rule);
return rule;
}