mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -254,6 +254,7 @@ func generateRandomID() string {
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, config AISecurityConfig, log log.Log) types.Action {
|
||||
ctx.DisableReroute()
|
||||
if !config.checkRequest {
|
||||
log.Debugf("request checking is disabled")
|
||||
ctx.DontReadRequestBody()
|
||||
|
||||
Reference in New Issue
Block a user