aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modify_querystring.py
blob: b1abcc1eeb9eb0dc3b341c6b47696a7bba2fe0e7 (plain)
1
2
3
4
5
6
7
def request(context, flow):
    q = flow.request.get_query()
    if q:
        q["mitmproxy"] = ["rocks"]
        flow.request.set_query(q)