From a8aa1f2d1c8fe19313ca8abe07f9d6aa431fc3c3 Mon Sep 17 00:00:00 2001 From: Clemens Date: Thu, 4 Aug 2016 09:34:36 +0200 Subject: [PATCH] fix get contentview in mitmweb --- mitmproxy/web/app.py | 6 ++++-- web/src/js/components/ContentView.jsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index 5c95c06f6..18745f5b2 100644 --- a/mitmproxy/web/app.py +++ b/mitmproxy/web/app.py @@ -363,9 +363,11 @@ class FlowContentView(RequestHandler): self.set_header("Content-Encoding", "") - description, lines = contentviews.get_content_view_with_message_encoding( - message, contentviews.get(content_view.replace('_', ' ')) + description, lines, error = contentviews.get_message_content_view( + contentviews.get(content_view.replace('_', ' ')), message ) +# if error: +# add event log self.write(dict( lines=list(lines), diff --git a/web/src/js/components/ContentView.jsx b/web/src/js/components/ContentView.jsx index 9ec283cac..128d8e81a 100644 --- a/web/src/js/components/ContentView.jsx +++ b/web/src/js/components/ContentView.jsx @@ -39,7 +39,7 @@ function ContentView(props) {
-
+