mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Merge pull request #576 from nickraptis/req-ts-start
Accurately timestamp start of request
This commit is contained in:
commit
541a506b5f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user