mitmproxy/examples/dup_and_replay.py
2016-11-17 16:33:51 -08:00

8 lines
170 B
Python

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