mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 18:57:22 +00:00
6 lines
No EOL
247 B
Python
6 lines
No EOL
247 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) |