mitmproxy/examples/modify_querystring.py

6 lines
131 B
Python
Raw Normal View History

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