diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-19 13:04:02 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-19 13:04:02 +1300 |
commit | 9113277cd39e2cb66e3758db0039759cf4287766 (patch) | |
tree | 7a6e11708883f831a8b1c3dee21aa27abf1924bb | |
parent | 77a33c441b9d6ea80bda9a6288cfcba95ab70081 (diff) | |
download | mitmproxy-9113277cd39e2cb66e3758db0039759cf4287766.tar.gz mitmproxy-9113277cd39e2cb66e3758db0039759cf4287766.tar.bz2 mitmproxy-9113277cd39e2cb66e3758db0039759cf4287766.zip |
Fix bug in method filter matching.
-rw-r--r-- | libmproxy/filt.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmproxy/filt.py b/libmproxy/filt.py index f8abc1c6..228a2283 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 |