aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark E. Haase <mehaase@gmail.com>2011-12-28 16:47:30 -0500
committerMark E. Haase <mehaase@gmail.com>2011-12-28 16:47:30 -0500
commit965d318164f430a1b1680f205616954aac2faace (patch)
treee555dbacbdee65dfccda1688c72c19b883a670ab
parent28fd3bd461f17ce6b1af09eca7e84965dbb41c9d (diff)
downloadmitmproxy-965d318164f430a1b1680f205616954aac2faace.tar.gz
mitmproxy-965d318164f430a1b1680f205616954aac2faace.tar.bz2
mitmproxy-965d318164f430a1b1680f205616954aac2faace.zip
Help docs have ~r as an example but ~r isn't valid. I think it's supposed to be ~q.
-rw-r--r--doc-src/filters.html4
-rw-r--r--libmproxy/console.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc-src/filters.html b/doc-src/filters.html
index b5e3ebf8..2424c6f8 100644
--- a/doc-src/filters.html
+++ b/doc-src/filters.html
@@ -26,9 +26,9 @@ URL containing "google.com":
Requests whose body contains the string "test":
- ~r ~b test
+ ~q ~b test
Anything but requests with a text/html content type:
- !(~r & ~t \"text/html\")
+ !(~q & ~t \"text/html\")
diff --git a/libmproxy/console.py b/libmproxy/console.py
index 337cd243..fb1a2ed0 100644
--- a/libmproxy/console.py
+++ b/libmproxy/console.py
@@ -1499,8 +1499,8 @@ class ConsoleMaster(flow.FlowMaster):
)
examples = [
("google\.com", "Url containing \"google.com"),
- ("~r ~b test", "Requests where body contains \"test\""),
- ("!(~r & ~t \"text/html\")", "Anything but requests with a text/html content type."),
+ ("~q ~b test", "Requests where body contains \"test\""),
+ ("!(~q & ~t \"text/html\")", "Anything but requests with a text/html content type."),
]
text.extend(format_keyvals(examples, key="key", val="text", indent=4))
return urwid.ListBox([urwid.Text(text)])