blob: 3d93e392d7f2d0d8f599692e3eab60999c509fdb (
plain)
| 1
2
3
4
5
6
 | 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)
 |