mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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", "")
|
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),
|
||||||
|
@ -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}/>
|
||||||
|
|
||||||
<DownloadContentButton flow={flow} message={message}/>
|
<DownloadContentButton flow={flow} message={message}/>
|
||||||
|
Loading…
Reference in New Issue
Block a user