mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-05-09 16:43:06 +08:00
rename examples directory to provide space for GUI scripts
This commit is contained in:
7
scripts/core/modify_querystring.py
Normal file
7
scripts/core/modify_querystring.py
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
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