Fix bug in method filter matching.

This commit is contained in:
Aldo Cortesi 2012-02-19 13:04:02 +13:00
parent 77a33c441b
commit 9113277cd3
1 changed files with 1 additions and 3 deletions

View File

@ -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