mirror of
https://github.com/alibaba/higress.git
synced 2026-06-08 20:27:31 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -58,6 +58,7 @@ func parseConfig(json gjson.Result, c *config.PluginConfig, log log.Log) error {
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, c config.PluginConfig, log log.Log) types.Action {
|
||||
ctx.DisableReroute()
|
||||
skipCache, _ := proxywasm.GetHttpRequestHeader(SKIP_CACHE_HEADER)
|
||||
if skipCache == "on" {
|
||||
ctx.SetContext(SKIP_CACHE_HEADER, struct{}{})
|
||||
|
||||
Reference in New Issue
Block a user