diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-03-07 09:19:29 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-03-11 17:57:57 +0530 |
commit | 9ef1522b5f2e855c5d2e343e7d49acd36ee4f6a0 (patch) | |
tree | afdfc67a5b7c14333d874e518318935dc80a7ea1 /examples/modify_querystring.py | |
parent | 96df077d5485979af256fe7b95708ace658fb8e2 (diff) | |
download | mitmproxy-9ef1522b5f2e855c5d2e343e7d49acd36ee4f6a0.tar.gz mitmproxy-9ef1522b5f2e855c5d2e343e7d49acd36ee4f6a0.tar.bz2 mitmproxy-9ef1522b5f2e855c5d2e343e7d49acd36ee4f6a0.zip |
Update modify_querystring example & add test for it
Diffstat (limited to 'examples/modify_querystring.py')
-rw-r--r-- | examples/modify_querystring.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/modify_querystring.py b/examples/modify_querystring.py index 7f31a48f..d682df69 100644 --- a/examples/modify_querystring.py +++ b/examples/modify_querystring.py @@ -1,6 +1,5 @@ - def request(context, flow): - q = flow.request.get_query() + q = flow.request.query if q: q["mitmproxy"] = ["rocks"] - flow.request.set_query(q) + flow.request.query = q |