blob: c4edb2cd77060a80668dcadaff38580beeaa7d29 (
plain)
1
2
3
4
5
6
7
8
|
def request(context, flow):
if flow.request.urlencoded_form is not None:
flow.request.urlencoded_form["mitmproxy"] = "rocks"
else:
# This sets the proper content type and overrides the body.
flow.request.urlencoded_form = [
("foo", "bar")
]
|