mitmproxy/examples/dup_and_replay.py
2014-09-08 17:03:34 +02:00

4 lines
126 B
Python

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