aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmproxy/flow.py2
-rw-r--r--test/test_flow.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 1826af3d..3d5a6a36 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -191,7 +191,7 @@ class ClientPlaybackState:
testing: Disables actual replay for testing.
"""
if self.flows and not self.current:
- n = self.flows.pop(0)
+ n = self.flows.pop(0).copy()
n.response = None
n.reply = controller.DummyReply()
self.current = master.handle_request(n)
diff --git a/test/test_flow.py b/test/test_flow.py
index 6ed279c2..8c197153 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -692,7 +692,8 @@ class TestFlowMaster:
f = tutils.tflow(resp=True)
pb = [tutils.tflow(resp=True), f]
- fm = flow.FlowMaster(None, s)
+
+ fm = flow.FlowMaster(DummyServer(ProxyConfig()), s)
assert not fm.start_server_playback(pb, False, [], False, False, None, False)
assert not fm.start_client_playback(pb, False)