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, 2 insertions, 3 deletions
diff --git a/examples/modify_querystring.py b/examples/modify_querystring.py
index b1abcc1e..56fbbb32 100644
--- a/examples/modify_querystring.py
+++ b/examples/modify_querystring.py
@@ -1,7 +1,6 @@
-def request(context, flow):
+def request(ctx, flow):
q = flow.request.get_query()
if q:
q["mitmproxy"] = ["rocks"]
- flow.request.set_query(q)
-
+ flow.request.set_query(q) \ No newline at end of file