From 92597f82ea8e4747ce1836ecd5eb2479486e8647 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 18 Feb 2016 09:19:05 +1300 Subject: Docs and examples to top level --- examples/modify_querystring.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/modify_querystring.py (limited to 'examples/modify_querystring.py') diff --git a/examples/modify_querystring.py b/examples/modify_querystring.py new file mode 100644 index 00000000..7f31a48f --- /dev/null +++ b/examples/modify_querystring.py @@ -0,0 +1,6 @@ + +def request(context, flow): + q = flow.request.get_query() + if q: + q["mitmproxy"] = ["rocks"] + flow.request.set_query(q) -- cgit v1.2.3