mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 14:36:34 +08:00
WAF多个相同Key的cc2统计规则不再重复累加
This commit is contained in:
@@ -16,10 +16,10 @@ func TestResponseBodyCheckpoint_ResponseValue(t *testing.T) {
|
||||
resp.Body = ioutil.NopCloser(bytes.NewBuffer([]byte("Hello, World")))
|
||||
|
||||
checkpoint := new(ResponseBodyCheckpoint)
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
|
||||
t.Log(checkpoint.ResponseValue(nil, resp, "", nil, 1))
|
||||
|
||||
data, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user