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