Merge pull request #906 from anantk17/master
Added feature to intercept flows from within inline scripts
This commit is contained in:
commit
417384d6f2
|
@ -702,6 +702,10 @@ class ConsoleMaster(flow.FlowMaster):
|
|||
if self.state.intercept and f.match(
|
||||
self.state.intercept) and not f.request.is_replay:
|
||||
f.intercept(self)
|
||||
else:
|
||||
#check if flow was intercepted within an inline script by flow.intercept()
|
||||
if f.intercepted:
|
||||
f.intercept(self)
|
||||
else:
|
||||
f.reply()
|
||||
signals.flowlist_change.send(self)
|
||||
|
|
Loading…
Reference in New Issue