mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
9 lines
272 B
Python
9 lines
272 B
Python
def request(flow):
|
|
if flow.request.urlencoded_form:
|
|
flow.request.urlencoded_form["mitmproxy"] = "rocks"
|
|
else:
|
|
# This sets the proper content type and overrides the body.
|
|
flow.request.urlencoded_form = [
|
|
("foo", "bar")
|
|
]
|