diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-04 00:46:42 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-04 00:46:42 +0200 |
commit | a18db90ea3123b37e3f1fd3f10da001a8ea893c2 (patch) | |
tree | 7e3ed5515b59a52ad14c5c8c3047ce5c2daae3d9 /examples/modify_form.py | |
parent | 14457f29b3d89e234d0791c4980e5cf9514185dd (diff) | |
download | mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.tar.gz mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.tar.bz2 mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.zip |
update example inline scripts
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) |