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", "") self.set_header("Content-Encoding", "")
description, lines = contentviews.get_content_view_with_message_encoding( description, lines, error = contentviews.get_message_content_view(
message, contentviews.get(content_view.replace('_', ' ')) contentviews.get(content_view.replace('_', ' ')), message
) )
# if error:
# add event log
self.write(dict( self.write(dict(
lines=list(lines), lines=list(lines),

View File

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