aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modify_form.py
blob: cb12ee0fadc6b486196e91d1d576d55ea7da783a (plain)
1
2
3
4
5
6
7
8
def request(context, flow):
    if "application/x-www-form-urlencoded" in flow.request.headers["content-type"]:
        frm = flow.request.form_urlencoded
        frm["mitmproxy"] = ["rocks"]
        flow.request.form_urlencoded = frm