mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-01 04:40:54 +08:00
优化WAF性能
This commit is contained in:
@@ -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, ' ')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user