aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrjt-gupta <rajat.gupta99924@gmail.com>2018-12-01 18:23:10 +0530
committerrjt-gupta <rajat.gupta99924@gmail.com>2018-12-01 18:23:10 +0530
commit39e5ceb6cf8cf3c423e699339e0928a1bdce0696 (patch)
treed930e4a1aaa20b2de128f604ccbe1aa6b260a658
parent6f893a83c090f049e7cebe3335e7a2a32695946b (diff)
downloadmitmproxy-39e5ceb6cf8cf3c423e699339e0928a1bdce0696.tar.gz
mitmproxy-39e5ceb6cf8cf3c423e699339e0928a1bdce0696.tar.bz2
mitmproxy-39e5ceb6cf8cf3c423e699339e0928a1bdce0696.zip
client-replay-fix
-rw-r--r--mitmproxy/addons/clientplayback.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py
index 99ba1d8d..c56c0e74 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()