aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBrady Law <brady@lyft.com>2016-10-21 16:47:19 -0700
committerBrady Law <brady@lyft.com>2016-10-21 16:47:19 -0700
commit0d0a3a51dfd8990b2dfd47c32cb070950b606d5c (patch)
treec7e3ac6add77bd22cd540453e608e5d6be50675c /examples
parent4ce828401f179e639a1116db519b486d674ac5a4 (diff)
downloadmitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.tar.gz
mitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.tar.bz2
mitmproxy-0d0a3a51dfd8990b2dfd47c32cb070950b606d5c.zip
The first argument should be the filter, then the flow.
Diffstat (limited to 'examples')
-rw-r--r--examples/flowfilter.py2
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)