mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
minor fixes
This commit is contained in:
parent
a0ad0b06a0
commit
eda1b39a74
@ -1,7 +1,7 @@
|
||||
from mitmproxy import master
|
||||
from mitmproxy import ctx
|
||||
|
||||
|
||||
def request(flow):
|
||||
f = master.duplicate_flow(flow)
|
||||
f = ctx.master.state.duplicate_flow(flow)
|
||||
f.request.path = "/changed"
|
||||
master.replay_request(f, block=True, run_scripthooks=False)
|
||||
ctx.master.replay_request(f, block=True, run_scripthooks=False)
|
||||
|
@ -1,2 +1,2 @@
|
||||
master = None # type: "mitmproxy.master.Master"
|
||||
log = None # type: "mitmproxy.controller.Log"
|
||||
log = None # type: "mitmproxy.log.Log"
|
||||
|
Loading…
Reference in New Issue
Block a user