diff options
Diffstat (limited to 'examples/modify_form.py')
-rw-r--r-- | examples/modify_form.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/modify_form.py b/examples/modify_form.py index 37ba2fac..c2f0a47e 100644 --- a/examples/modify_form.py +++ b/examples/modify_form.py @@ -1,7 +1,5 @@ - def request(context, flow): - if "application/x-www-form-urlencoded" in flow.request.headers[ - "content-type"]: + 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) |