From 6ad8b1a15d725f34990cfe3ae650fa239171a044 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 18 Feb 2012 16:27:09 +1300 Subject: Firm up reverse proxy specification. - Extract proxy spec parsing and unparsing functions. - Add a status indicator in mitmproxy. - Add the "R" keybinding for changing the reverse proxy from within mitmproxy. --- libmproxy/filt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmproxy/filt.py') diff --git a/libmproxy/filt.py b/libmproxy/filt.py index 9a227903..f8abc1c6 100644 --- a/libmproxy/filt.py +++ b/libmproxy/filt.py @@ -212,8 +212,10 @@ class FUrl(_Rex): def __call__(self, o): if isinstance(o, flow.Response): c = o.request - else: + elif isinstance(o, flow.Request): c = o + else: + return False return re.search(self.expr, c.get_url()) -- cgit v1.2.3