From 39e5ceb6cf8cf3c423e699339e0928a1bdce0696 Mon Sep 17 00:00:00 2001 From: rjt-gupta Date: Sat, 1 Dec 2018 18:23:10 +0530 Subject: [PATCH] client-replay-fix --- mitmproxy/addons/clientplayback.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py index 99ba1d8df..c56c0e74a 100644 --- a/mitmproxy/addons/clientplayback.py +++ b/mitmproxy/addons/clientplayback.py @@ -1,6 +1,7 @@ import queue import threading import typing +import time from mitmproxy import log from mitmproxy import controller @@ -94,6 +95,7 @@ class RequestReplayThread(basethread.BaseThread): server.wfile.write(http1.assemble_request(r)) server.wfile.flush() + r.timestamp_start = r.timestamp_end = time.time() if f.server_conn: f.server_conn.close()