mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +00:00
fix contentview attributes
This commit is contained in:
parent
5d209e5040
commit
d15ddfad14
@ -626,11 +626,14 @@ def get_message_content_view(viewname, message):
|
||||
if content is None:
|
||||
return "", iter([[("error", "content missing")]]), None
|
||||
|
||||
query = message.query if isinstance(message, http.Request) else None
|
||||
headers = message.headers if isinstance(message, http.Message) else None
|
||||
metadata = {}
|
||||
if isinstance(message, http.Request):
|
||||
metadata["query"] = message.query
|
||||
if isinstance(message, http.Message):
|
||||
metadata["headers"] = message.headers
|
||||
|
||||
description, lines, error = get_content_view(
|
||||
viewmode, content, headers=headers, query=query
|
||||
viewmode, content, **metadata
|
||||
)
|
||||
|
||||
if enc:
|
||||
|
Loading…
Reference in New Issue
Block a user