aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modify_form.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modify_form.py')
-rw-r--r--examples/modify_form.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/modify_form.py b/examples/modify_form.py
index 2d839aed..cb12ee0f 100644
--- a/examples/modify_form.py
+++ b/examples/modify_form.py
@@ -1,8 +1,8 @@
def request(context, flow):
if "application/x-www-form-urlencoded" in flow.request.headers["content-type"]:
- frm = flow.request.get_form_urlencoded()
+ frm = flow.request.form_urlencoded
frm["mitmproxy"] = ["rocks"]
- flow.request.set_form_urlencoded(frm)
+ flow.request.form_urlencoded = frm