aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-10-17 03:17:49 -0700
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-10-17 12:56:11 +0200
commitc6d485bc770eb8bda106f0fe1e26eae13213abf9 (patch)
tree74e62c013b822a35b8c6823b8576fd3f3bff77c1
parentbeed406058db2e91cb429046f95d53add36ed89e (diff)
downloadmitmproxy-c6d485bc770eb8bda106f0fe1e26eae13213abf9.tar.gz
mitmproxy-c6d485bc770eb8bda106f0fe1e26eae13213abf9.tar.bz2
mitmproxy-c6d485bc770eb8bda106f0fe1e26eae13213abf9.zip
dumper: limit url length
-rw-r--r--mitmproxy/builtins/dumper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/builtins/dumper.py b/mitmproxy/builtins/dumper.py
index bba17f38..04dfb42c 100644
--- a/mitmproxy/builtins/dumper.py
+++ b/mitmproxy/builtins/dumper.py
@@ -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 = ""