From 9113277cd39e2cb66e3758db0039759cf4287766 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 19 Feb 2012 13:04:02 +1300 Subject: [PATCH] Fix bug in method filter matching. --- libmproxy/filt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libmproxy/filt.py b/libmproxy/filt.py index f8abc1c67..228a22837 100644 --- a/libmproxy/filt.py +++ b/libmproxy/filt.py @@ -192,9 +192,7 @@ class FMethod(_Rex): code = "m" help = "Method" def __call__(self, o): - if isinstance(o, flow.Response): - return False - elif o.method: + if isinstance(o, flow.Request): return re.search(self.expr, o.method, re.IGNORECASE) return False