From f13e2213eaeb464b0adfef2b560bdee926f2b8db Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 2 Apr 2012 11:22:01 +1200 Subject: [PATCH] Make it clearer when we fall back to Raw. --- libmproxy/console/contentview.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/contentview.py b/libmproxy/console/contentview.py index ab08602f0..0d725c9da 100644 --- a/libmproxy/console/contentview.py +++ b/libmproxy/console/contentview.py @@ -113,7 +113,7 @@ def view_hex(hdrs, content): ("text", s), ])) trailer(len(content), txt) - return "HEX", txt + return "Hex", txt def view_xmlish(hdrs, content): @@ -272,6 +272,9 @@ def get_content_view(viewmode, hdrItems, content): func = get_view_func(viewmode, hdrs, content) ret = func(hdrs, content) if not ret: + viewmode = VIEW_RAW ret = view_raw(hdrs, content) - msg.append(ret[0]) + msg.append("Fallback to Raw") + else: + msg.append(ret[0]) return " ".join(msg), ret[1]