mitmproxy/examples/dup_and_replay.py
2015-05-30 12:03:28 +12:00

5 lines
127 B
Python

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