mitmproxy/examples/modify_querystring.py

8 lines
133 B
Python
Raw Normal View History

def request(context, flow):
2014-09-03 21:44:54 +00:00
q = flow.request.query
if q:
q["mitmproxy"] = ["rocks"]
2014-09-03 21:44:54 +00:00
flow.request.query = q