mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
5 lines
255 B
Python
5 lines
255 B
Python
def request(context, flow):
|
|
if "application/x-www-form-urlencoded" in flow.request.headers.get("content-type", ""):
|
|
form = flow.request.get_form_urlencoded()
|
|
form["mitmproxy"] = ["rocks"]
|
|
flow.request.set_form_urlencoded(form)
|