mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
9 lines
171 B
Python
9 lines
171 B
Python
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)
|