mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
8 lines
193 B
Python
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)
|