优化WAF性能

This commit is contained in:
GoEdgeLab
2022-03-16 17:06:26 +08:00
parent a90baa69c7
commit 6bd4998dbe
10 changed files with 61 additions and 7 deletions

View File

@@ -18,6 +18,11 @@ func (this *RequestAllCheckpoint) RequestValue(req requests.Request, param strin
valueBytes = append(valueBytes, req.WAFRaw().URL.RequestURI()...)
}
if this.RequestBodyIsEmpty(req) {
value = valueBytes
return
}
if req.WAFRaw().Body != nil {
valueBytes = append(valueBytes, ' ')