mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
Docs and examples to top level
This commit is contained in:
6
examples/modify_querystring.py
Normal file
6
examples/modify_querystring.py
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
def request(context, flow):
|
||||
q = flow.request.get_query()
|
||||
if q:
|
||||
q["mitmproxy"] = ["rocks"]
|
||||
flow.request.set_query(q)
|
||||
Reference in New Issue
Block a user