Disable reroute in some plugins (#2639)

This commit is contained in:
澄潭
2025-07-22 14:44:26 +08:00
committed by GitHub
parent 34b5a6feea
commit 4d32cc9468
24 changed files with 28 additions and 15 deletions

View File

@@ -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{}{})