diff options
author | Brady Law <brady@lyft.com> | 2016-10-21 16:47:19 -0700 |
---|---|---|
committer | Brady Law <brady@lyft.com> | 2016-10-21 16:47:19 -0700 |
commit | 0d0a3a51dfd8990b2dfd47c32cb070950b606d5c (patch) | |
tree | c7e3ac6add77bd22cd540453e608e5d6be50675c | |
parent | 4ce828401f179e639a1116db519b486d674ac5a4 (diff) | |
download | mitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.tar.gz mitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.tar.bz2 mitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.zip |
The first argument should be the filter, then the flow.
-rw-r--r-- | examples/flowfilter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/flowfilter.py b/examples/flowfilter.py index 80a153da..34d97275 100644 --- a/examples/flowfilter.py +++ b/examples/flowfilter.py @@ -10,7 +10,7 @@ class Filter: self.filter = flowfilter.parse(spec) def response(self, flow): - if flowfilter.match(flow, self.filter): + if flowfilter.match(self.filter, flow): print("Flow matches filter:") print(flow) |