mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 02:37:15 +00:00
Generate better function names for root url. (#1100)
This commit is contained in:
parent
66267ad276
commit
acaca765e4
1 changed files with 3 additions and 1 deletions
|
|
@ -128,7 +128,9 @@ def locust_code(flow):
|
|||
file_name = "_".join(components)
|
||||
name = re.sub('\W|^(?=\d)', '_', file_name)
|
||||
url = flow.request.scheme + "://" + flow.request.host + "/" + "/".join(components)
|
||||
|
||||
if name == "" or name is None:
|
||||
new_name = "_".join([str(flow.request.host) , str(flow.request.timestamp_start)])
|
||||
name = re.sub('\W|^(?=\d)', '_', new_name)
|
||||
args = ""
|
||||
headers = ""
|
||||
if flow.request.headers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue