mitmproxy/examples/modify_querystring.py

6 lines
140 B
Python
Raw Normal View History

2014-09-08 14:02:31 +00:00
def request(context, flow):
q = flow.request.get_query()
if q:
q["mitmproxy"] = ["rocks"]
flow.request.set_query(q)