mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
Add Javascript to manual pretty type over-rides.
This commit is contained in:
parent
a979e1ad50
commit
b6725ee802
@ -365,6 +365,8 @@ class FlowView(common.WWrap):
|
||||
if t == "a":
|
||||
self.view_body_pretty_type = contentview.VIEW_CONTENT_PRETTY_TYPE_AUTO
|
||||
elif t == "j":
|
||||
self.view_body_pretty_type = contentview.VIEW_CONTENT_PRETTY_TYPE_JAVASCRIPT
|
||||
elif t == "s":
|
||||
self.view_body_pretty_type = contentview.VIEW_CONTENT_PRETTY_TYPE_JSON
|
||||
elif t == "u":
|
||||
self.view_body_pretty_type = contentview.VIEW_CONTENT_PRETTY_TYPE_URLENCODED
|
||||
@ -464,7 +466,8 @@ class FlowView(common.WWrap):
|
||||
"Pretty-Print format",
|
||||
(
|
||||
("auto detect", "a"),
|
||||
("json", "j"),
|
||||
("javascript", "j"),
|
||||
("json", "s"),
|
||||
("urlencoded", "u"),
|
||||
("xmlish", "x"),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user