aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-07-26 12:02:18 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-07-26 12:02:18 +0200
commite9c834a30ddab5a8b6ef7b31c8ebebcf7e955371 (patch)
treef795acc1cda9334064171ae8d371f3dde434732d /libmproxy/flow.py
parenta73ad1d945c9d3371c1530113a1c4ea3446f3fd4 (diff)
downloadmitmproxy-e9c834a30ddab5a8b6ef7b31c8ebebcf7e955371.tar.gz
mitmproxy-e9c834a30ddab5a8b6ef7b31c8ebebcf7e955371.tar.bz2
mitmproxy-e9c834a30ddab5a8b6ef7b31c8ebebcf7e955371.zip
fix #259
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r--libmproxy/flow.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index b6b49022..5062c202 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -672,12 +672,7 @@ class FlowMaster(controller.Master):
self.run_script_hook("clientdisconnect", r)
r.reply()
- def handle_serverconnection(self, sc):
- # To unify the mitmproxy script API, we call the script hook
- # "serverconnect" rather than "serverconnection". As things are handled
- # differently in libmproxy (ClientConnect + ClientDisconnect vs
- # ServerConnection class), there is no "serverdisonnect" event at the
- # moment.
+ def handle_serverconnect(self, sc):
self.run_script_hook("serverconnect", sc)
sc.reply()
@@ -791,7 +786,7 @@ class FilteredFlowWriter:
class RequestReplayThread(threading.Thread):
- name="RequestReplayThread"
+ name = "RequestReplayThread"
def __init__(self, config, flow, masterq, should_exit):
self.config, self.flow, self.channel = config, flow, controller.Channel(masterq, should_exit)