优化WAF性能

This commit is contained in:
刘祥超
2022-03-16 17:06:26 +08:00
parent 9b85487a70
commit 469a3ea979
10 changed files with 61 additions and 7 deletions

View File

@@ -17,6 +17,11 @@ type RequestUploadCheckpoint struct {
}
func (this *RequestUploadCheckpoint) RequestValue(req requests.Request, param string, options maps.Map) (value interface{}, sysErr error, userErr error) {
if this.RequestBodyIsEmpty(req) {
value = ""
return
}
value = ""
if param == "minSize" || param == "maxSize" {
value = 0