From 965d318164f430a1b1680f205616954aac2faace Mon Sep 17 00:00:00 2001 From: "Mark E. Haase" Date: Wed, 28 Dec 2011 16:47:30 -0500 Subject: [PATCH] Help docs have ~r as an example but ~r isn't valid. I think it's supposed to be ~q. --- doc-src/filters.html | 4 ++-- libmproxy/console.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc-src/filters.html b/doc-src/filters.html index b5e3ebf8a..2424c6f8e 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 337cd243b..fb1a2ed07 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)])