mirror of
https://github.com/alibaba/higress.git
synced 2026-05-28 06:37:26 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -36,6 +36,7 @@ func parseConfig(json gjson.Result, config *AIPromptTemplateConfig, log log.Log)
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, config AIPromptTemplateConfig, log log.Log) types.Action {
|
||||
ctx.DisableReroute()
|
||||
templateEnable, _ := proxywasm.GetHttpRequestHeader("template-enable")
|
||||
if templateEnable == "false" {
|
||||
ctx.DontReadRequestBody()
|
||||
|
||||
Reference in New Issue
Block a user