mitmproxy/examples/modify_querystring.py

6 lines
131 B
Python

def request(context, flow):
q = flow.request.query
if q:
q["mitmproxy"] = ["rocks"]
flow.request.query = q