diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 8d703786b..7d80e0d8c 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -344,6 +344,11 @@ class HTTPRequest(HTTPMessage): body_size_limit = body_size_limit, wfile = wfile ) + + if hasattr(rfile, "first_byte_timestamp"): + # more accurate timestamp_start + timestamp_start = rfile.first_byte_timestamp + timestamp_end = utils.timestamp() return HTTPRequest( req.form_in,