aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/dup_and_replay.py
blob: 2baa1ea6db42b07181ae5c91b1b87d89dfe462aa (plain)
1
2
3
4
5
6
7
8
from mitmproxy import ctx


def request(flow):
    f = flow.copy()
    ctx.master.view.add(f)
    f.request.path = "/changed"
    ctx.master.replay_request(f, block=True)