mitmproxy/examples/dup_and_replay.py
Maximilian Hils eda1b39a74 minor fixes
2016-10-25 22:06:52 -07:00

8 lines
193 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, run_scripthooks=False)