mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
8 lines
182 B
Python
8 lines
182 B
Python
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)
|