mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
dumper: limit url length
This commit is contained in:
parent
beed406058
commit
c6d485bc77
@ -130,6 +130,8 @@ class Dumper:
|
||||
url = flow.request.pretty_url
|
||||
else:
|
||||
url = flow.request.url
|
||||
if len(url) > 200:
|
||||
url = url[:199] + "…"
|
||||
url = click.style(strutils.escape_control_characters(url), bold=True)
|
||||
|
||||
http_version = ""
|
||||
|
Loading…
Reference in New Issue
Block a user