mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
Fix crash when duplicating flow
This commit is contained in:
@@ -113,8 +113,8 @@ class Flow(stateobject.StateObject):
|
||||
def copy(self):
|
||||
f = super().copy()
|
||||
f.id = str(uuid.uuid4())
|
||||
f.live = False;
|
||||
if self.reply != None:
|
||||
f.live = False
|
||||
if self.reply is not None:
|
||||
f.reply = controller.DummyReply()
|
||||
return f
|
||||
|
||||
|
||||
Reference in New Issue
Block a user