mitmproxy/examples/modify_querystring.py
2014-09-05 15:16:20 +02:00

6 lines
136 B
Python

def request(ctx, flow):
q = flow.request.get_query()
if q:
q["mitmproxy"] = ["rocks"]
flow.request.set_query(q)