mirror of
https://github.com/alibaba/higress.git
synced 2026-04-20 19:47:29 +08:00
Disable reroute in some plugins (#2639)
This commit is contained in:
@@ -57,6 +57,7 @@ func parseConfig(json gjson.Result, config *Config) error {
|
||||
}
|
||||
|
||||
func onHttpRequestHeaders(ctx wrapper.HttpContext, config Config) types.Action {
|
||||
ctx.DisableReroute()
|
||||
contentType, _ := proxywasm.GetHttpRequestHeader("content-type")
|
||||
if contentType == "" {
|
||||
return types.ActionContinue
|
||||
|
||||
Reference in New Issue
Block a user