aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dup_and_replay.py
blob: b47bf951d648cc20ea3b21a32d953e7c8ebd09c9 (plain)
1
2
3
4
5
6
7
from mitmproxy import master


def request(flow):
    f = master.duplicate_flow(flow)
    f.request.path = "/changed"
    master.replay_request(f, block=True, run_scripthooks=False)