mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
8 lines
261 B
Python
8 lines
261 B
Python
|
|
def request(context, flow):
|
|
if "application/x-www-form-urlencoded" in flow.request.headers[
|
|
"content-type"]:
|
|
form = flow.request.get_form_urlencoded()
|
|
form["mitmproxy"] = ["rocks"]
|
|
flow.request.set_form_urlencoded(form)
|