Fix bug in method filter matching.
This commit is contained in:
parent
77a33c441b
commit
9113277cd3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue