From fa09bfa4895352bdc866e512cc7e76b9757b4b58 Mon Sep 17 00:00:00 2001 From: Fenil Gandhi Date: Sat, 3 Mar 2018 09:44:46 +0530 Subject: [PATCH] Fix for wrapping up extra-long urls in flowdetailview --- mitmproxy/tools/console/flowview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mitmproxy/tools/console/flowview.py b/mitmproxy/tools/console/flowview.py index 9420c1059..650a93665 100644 --- a/mitmproxy/tools/console/flowview.py +++ b/mitmproxy/tools/console/flowview.py @@ -30,12 +30,14 @@ class FlowViewHeader(urwid.WidgetWrap): self.focus_changed() def focus_changed(self): + cols, _ = self.master.ui.get_cols_rows() if self.master.view.focus.flow: self._w = common.format_flow( self.master.view.focus.flow, False, extended=True, - hostheader=self.master.options.showhost + hostheader=self.master.options.showhost, + max_url_len=cols, ) else: self._w = urwid.Pile([])