aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/contentview.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/console/contentview.py')
-rw-r--r--libmproxy/console/contentview.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmproxy/console/contentview.py b/libmproxy/console/contentview.py
index b1b99bb6..582723bb 100644
--- a/libmproxy/console/contentview.py
+++ b/libmproxy/console/contentview.py
@@ -488,12 +488,15 @@ def get(name):
return i
-def get_content_view(viewmode, hdrItems, content, limit, logfunc):
+def get_content_view(viewmode, hdrItems, content, limit, logfunc, is_request):
"""
Returns a (msg, body) tuple.
"""
if not content:
- return ("No content", "")
+ if is_request:
+ return "No request content (press tab to view response)", ""
+ else:
+ return "No content", ""
msg = []
hdrs = flow.ODictCaseless([list(i) for i in hdrItems])