aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modify_querystring.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modify_querystring.py')
-rw-r--r--examples/modify_querystring.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/modify_querystring.py b/examples/modify_querystring.py
index d682df69..b89e5c8d 100644
--- a/examples/modify_querystring.py
+++ b/examples/modify_querystring.py
@@ -1,5 +1,2 @@
def request(context, flow):
- q = flow.request.query
- if q:
- q["mitmproxy"] = ["rocks"]
- flow.request.query = q
+ flow.request.query["mitmproxy"] = "rocks"