mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-04 11:47:14 +00:00
docs: clarify when filter regexes must be quoted (#8346)
Applies reviewer's suggested wording and drops the unrelated certs.py/test_certs.py changes that had leaked into this branch. Fixes #7715
This commit is contained in:
parent
72995cab1c
commit
8fc25b3045
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ expressions consist of the following operators:
|
|||
|
||||
- Regexes are Python-style.
|
||||
- Regexes can be specified as quoted strings.
|
||||
- Regexes containing parentheses, whitespace, or the `~`, `'`, `"` characters must be quoted because these characters are reserved by the filter expression syntax. Otherwise, the expression may be parsed differently or rejected. For example, use ~u "get(Info|Routers)".
|
||||
- Regexes are case-insensitive by default.[^1]
|
||||
- Header matching (~h, ~hq, ~hs) is against a string of the form "name: value".
|
||||
- Strings with no operators are matched against the request URL.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue