mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-08 02:40:32 +08:00
WAF多个相同Key的cc2统计规则不再重复累加
This commit is contained in:
@@ -88,11 +88,11 @@ func TestRequestUploadCheckpoint_RequestValue(t *testing.T) {
|
||||
req.WAFRaw().Header.Add("Content-Type", writer.FormDataContentType())
|
||||
|
||||
checkpoint := new(RequestUploadCheckpoint)
|
||||
t.Log(checkpoint.RequestValue(req, "field", nil))
|
||||
t.Log(checkpoint.RequestValue(req, "minSize", nil))
|
||||
t.Log(checkpoint.RequestValue(req, "maxSize", nil))
|
||||
t.Log(checkpoint.RequestValue(req, "name", nil))
|
||||
t.Log(checkpoint.RequestValue(req, "ext", nil))
|
||||
t.Log(checkpoint.RequestValue(req, "field", nil, 1))
|
||||
t.Log(checkpoint.RequestValue(req, "minSize", nil, 1))
|
||||
t.Log(checkpoint.RequestValue(req, "maxSize", nil, 1))
|
||||
t.Log(checkpoint.RequestValue(req, "name", nil, 1))
|
||||
t.Log(checkpoint.RequestValue(req, "ext", nil, 1))
|
||||
|
||||
data, err := ioutil.ReadAll(req.WAFRaw().Body)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user