diff options
Diffstat (limited to 'mitmproxy/console/flowview.py')
-rw-r--r-- | mitmproxy/console/flowview.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mitmproxy/console/flowview.py b/mitmproxy/console/flowview.py index f74ab140..b761a924 100644 --- a/mitmproxy/console/flowview.py +++ b/mitmproxy/console/flowview.py @@ -7,7 +7,7 @@ import math import urwid from netlib import odict -from netlib.http import CONTENT_MISSING, Headers +from netlib.http import Headers from . import common, grideditor, signals, searchable, tabs from . import flowdetailview from .. import utils, controller, contentviews @@ -169,7 +169,7 @@ class FlowView(tabs.Tabs): self.show() def content_view(self, viewmode, message): - if message.content == CONTENT_MISSING: + if message.content is None: msg, body = "", [urwid.Text([("error", "[content missing]")])] return msg, body else: @@ -510,7 +510,7 @@ class FlowView(tabs.Tabs): def delete_body(self, t): if t == "m": - val = CONTENT_MISSING + val = None else: val = None if self.tab_offset == TAB_REQ: @@ -585,6 +585,8 @@ class FlowView(tabs.Tabs): ("as curl command", "c"), ("as python code", "p"), ("as raw request", "r"), + ("as locust code", "l"), + ("as locust task", "t"), ), callback = common.export_prompt, args = (self.flow,) |