Commit 18f9d2b
committed
fix(api): compile header *value* regexp for scope rules
SetScope compiled rule.Header.Key twice, so a scope rule's header
**value** pattern was silently ignored and replaced by the key pattern.
Scope drives which traffic is shown/logged/intercepted, so this caused
incorrect matching: rules meant to match on a header value matched on the
header key instead, both missing intended in-scope traffic and including
unintended traffic.1 parent 52c83a1 commit 18f9d2b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments