Update modify_querystring example & add test for it

This commit is contained in:
Shadab Zafar
2016-03-07 09:19:29 +05:30
parent 96df077d54
commit 9ef1522b5f
2 changed files with 9 additions and 4 deletions

View File

@@ -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