修复WAF OnAction在并发时无法准确调用请求动作的Bug

This commit is contained in:
刘祥超
2021-12-01 17:43:08 +08:00
parent 6aacf49764
commit 0f0776fc1a
8 changed files with 34 additions and 43 deletions

View File

@@ -23,10 +23,6 @@ func Test_Template(t *testing.T) {
t.Fatal(err)
}
template.OnAction(func(action ActionInterface) (goNext bool) {
return action.Code() != ActionBlock
})
testTemplate1001(a, t, template)
testTemplate1002(a, t, template)
testTemplate1003(a, t, template)