mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 18:57:22 +00:00
8 lines
281 B
Python
8 lines
281 B
Python
def request(context, 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")
|
|
]
|