diff options
author | Jesson Soto Ventura <jessonsotoventura@gmail.com> | 2019-09-24 22:29:56 -0400 |
---|---|---|
committer | Jesson Soto Ventura <jessonsotoventura@gmail.com> | 2019-09-24 23:12:25 -0400 |
commit | 94ca23b78208c5976a4c013a1acdd4c37e83ba76 (patch) | |
tree | 864edcb8aa38189e9d9c2238fa904dc92fc166d8 /mitmproxy/net | |
parent | df06c4da3b43f425f08afdfd3b12209f9fb84f01 (diff) | |
download | mitmproxy-94ca23b78208c5976a4c013a1acdd4c37e83ba76.tar.gz mitmproxy-94ca23b78208c5976a4c013a1acdd4c37e83ba76.tar.bz2 mitmproxy-94ca23b78208c5976a4c013a1acdd4c37e83ba76.zip |
TLD and SLD are now highlighted using publicsuffix
- Added time.time() as the default for the start time on fake requests
Diffstat (limited to 'mitmproxy/net')
-rw-r--r-- | mitmproxy/net/http/request.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/net/http/request.py b/mitmproxy/net/http/request.py index 959fdd33..6ca3973f 100644 --- a/mitmproxy/net/http/request.py +++ b/mitmproxy/net/http/request.py @@ -1,5 +1,6 @@ import re import urllib +import time from typing import Optional, AnyStr, Dict, Iterable, Tuple, Union from mitmproxy.coretypes import multidict @@ -101,6 +102,7 @@ class Request(message.Message): ) req.url = url + req.timestamp_start = time.time() # Headers can be list or dict, we differentiate here. if isinstance(headers, dict): |