mitmproxy/examples/dup_and_replay.py
2014-09-05 15:16:20 +02:00

4 lines
114 B
Python

def request(ctx, flow):
f = ctx.duplicate_flow(flow)
f.request.path = "/changed"
ctx.replay_request(f)