From 9a885946842c5341bc3d3ffb34f21ed863ef9f76 Mon Sep 17 00:00:00 2001 From: harsh vijay Date: Mon, 13 Mar 2017 01:55:50 +0530 Subject: Fix crash when duplicating flow (#2) --- mitmproxy/flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mitmproxy/flow.py b/mitmproxy/flow.py index cc5f0aed..f48c3d9f 100644 --- a/mitmproxy/flow.py +++ b/mitmproxy/flow.py @@ -113,7 +113,9 @@ class Flow(stateobject.StateObject): def copy(self): f = super().copy() f.id = str(uuid.uuid4()) - f.live = False + f.live = False; + if self.reply != None: + f.reply = controller.DummyReply() return f def modified(self): -- cgit v1.2.3