mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
fix get contentview in mitmweb
This commit is contained in:
parent
fd7b6b958e
commit
a8aa1f2d1c
@ -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),
|
||||
|
@ -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}/>
|
||||
|
||||
<DownloadContentButton flow={flow} message={message}/>
|
||||
|
Loading…
Reference in New Issue
Block a user