aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-22 13:23:08 +1300
committerGitHub <noreply@github.com>2016-10-22 13:23:08 +1300
commit600906d1821d52d5af50939e5f8596ec12cc9f05 (patch)
treec7e3ac6add77bd22cd540453e608e5d6be50675c
parent4ce828401f179e639a1116db519b486d674ac5a4 (diff)
parent0d0a3a51dfd8990b2dfd47c32cb070950b606d5c (diff)
downloadmitmproxy-600906d1821d52d5af50939e5f8596ec12cc9f05.tar.gz
mitmproxy-600906d1821d52d5af50939e5f8596ec12cc9f05.tar.bz2
mitmproxy-600906d1821d52d5af50939e5f8596ec12cc9f05.zip
Merge pull request #1647 from babldev/fix-flowfilter-example
Fix method call in flowfilter example
-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)