aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stickycookies
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-03-14 09:19:43 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-03-14 09:19:43 +1300
commitcfb5ba89ce96594b2f8d51f27c9b2ee41ecf18e5 (patch)
tree7bdea72173b7f49e8409f6c5fb0c42e0fe3329ec /examples/stickycookies
parentc34d1e3de6483b1ab8a1a3add53fb84364c68249 (diff)
downloadmitmproxy-cfb5ba89ce96594b2f8d51f27c9b2ee41ecf18e5.tar.gz
mitmproxy-cfb5ba89ce96594b2f8d51f27c9b2ee41ecf18e5.tar.bz2
mitmproxy-cfb5ba89ce96594b2f8d51f27c9b2ee41ecf18e5.zip
Introduce a filtered flow writer, and use it in dump.py
Fixes #104
Diffstat (limited to 'examples/stickycookies')
-rwxr-xr-xexamples/stickycookies4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stickycookies b/examples/stickycookies
index 88bf0063..b07820fc 100755
--- a/examples/stickycookies
+++ b/examples/stickycookies
@@ -25,13 +25,13 @@ class StickyMaster(controller.Master):
self.stickyhosts[hid] = msg.headers["cookie"]
elif hid in self.stickyhosts:
msg.headers["cookie"] = self.stickyhosts[hid]
- msg._ack()
+ msg.reply()
def handle_response(self, msg):
hid = (msg.request.host, msg.request.port)
if msg.headers["set-cookie"]:
self.stickyhosts[hid] = msg.headers["set-cookie"]
- msg._ack()
+ msg.reply()
config = proxy.ProxyConfig(