From c6d485bc770eb8bda106f0fe1e26eae13213abf9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 17 Oct 2016 03:17:49 -0700 Subject: [PATCH] dumper: limit url length --- mitmproxy/builtins/dumper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/builtins/dumper.py b/mitmproxy/builtins/dumper.py index bba17f381..04dfb42cb 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 = ""