From b7d89f691999e8b6de63389388467eefaa3b6111 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 2 Sep 2012 12:57:49 +1200 Subject: [PATCH] Don't run replace or header hooks on error. --- libmproxy/flow.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 868419e51..44bb10186 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -1493,8 +1493,6 @@ class FlowMaster(controller.Master): def handle_error(self, r): f = self.state.add_error(r) - self.replacehooks.run(f) - self.setheaders.run(f) if f: self.run_script_hook("error", f) if self.client_playback: