diff options
Diffstat (limited to 'examples/flowbasic')
-rwxr-xr-x | examples/flowbasic | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/flowbasic b/examples/flowbasic index b419f9e7..b8184262 100755 --- a/examples/flowbasic +++ b/examples/flowbasic @@ -3,8 +3,8 @@ This example shows how to build a proxy based on mitmproxy's Flow primitives. - Note that request and response messages are not automatically acked, so we - need to implement handlers to do this. + Note that request and response messages are not automatically replied to, + so we need to implement handlers to do this. """ import os from libmproxy import proxy, flow @@ -19,13 +19,13 @@ class MyMaster(flow.FlowMaster): def handle_request(self, r): f = flow.FlowMaster.handle_request(self, r) if f: - r._ack() + r.reply() return f def handle_response(self, r): f = flow.FlowMaster.handle_response(self, r) if f: - r._ack() + r.reply() print f return f |