fix get contentview in mitmweb

This commit is contained in:
Clemens 2016-08-04 09:34:36 +02:00
parent fd7b6b958e
commit a8aa1f2d1c
2 changed files with 5 additions and 3 deletions

View File

@ -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),

View File

@ -39,7 +39,7 @@ function ContentView(props) {
<div className="contentview">
<View flow={flow} message={message} contentView={contentView} readonly={readonly} onChange={onContentChange}/>
<ShowFullContentButton/>
<div className="view-options">
<div className="view-options footer navbar-fixed-bottom">
<ViewSelector message={message}/>
&nbsp;
<DownloadContentButton flow={flow} message={message}/>