mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
Don't run replace or header hooks on error.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user