mitmproxy/examples/modify_querystring.py

7 lines
141 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"]
2015-05-30 00:03:28 +00:00
flow.request.set_query(q)