mitmproxy/examples/modify_querystring.py
2014-09-08 17:03:34 +02:00

6 lines
140 B
Python

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