aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-05-29 13:01:45 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-05-29 13:01:45 -0700
commit2e633af5aaf340e8d43c8d2228af6fe6f2de2256 (patch)
treed8bc8795fdcfa6a3372006fe20b08bcf007efd69 /mitmproxy/flow.py
parent748cbaa07469d4004b5631774b306aad646798f7 (diff)
downloadmitmproxy-2e633af5aaf340e8d43c8d2228af6fe6f2de2256.tar.gz
mitmproxy-2e633af5aaf340e8d43c8d2228af6fe6f2de2256.tar.bz2
mitmproxy-2e633af5aaf340e8d43c8d2228af6fe6f2de2256.zip
handle_* -> * leftovers
Diffstat (limited to 'mitmproxy/flow.py')
-rw-r--r--mitmproxy/flow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mitmproxy/flow.py b/mitmproxy/flow.py
index 407f0d7b..997a7830 100644
--- a/mitmproxy/flow.py
+++ b/mitmproxy/flow.py
@@ -810,7 +810,7 @@ class FlowMaster(controller.Master):
def do_server_playback(self, flow):
"""
- This method should be called by child classes in the handle_request
+ This method should be called by child classes in the request
handler. Returns True if playback has taken place, None if not.
"""
if self.server_playback:
@@ -1072,7 +1072,8 @@ class FlowMaster(controller.Master):
def handle_accept_intercept(self, f):
self.state.update_flow(f)
- def handle_script_change(self, s):
+ @controller.handler
+ def script_change(self, s):
"""
Handle a script whose contents have been changed on the file system.