mitmproxy/examples/complex/dup_and_replay.py
2016-11-23 22:35:07 +01:00

9 lines
171 B
Python

from mitmproxy import ctx
def request(flow):
f = flow.copy()
ctx.master.view.add(f)
f.request.path = "/changed"
ctx.master.replay_request(f, block=True)