optimize default action of route envoyfilter (#985)

This commit is contained in:
澄潭
2024-05-21 23:57:13 +08:00
committed by GitHub
parent d91b22f8c2
commit af8eff2bd6
2 changed files with 3 additions and 24 deletions

View File

@@ -636,6 +636,9 @@ func (g *GlobalOptionController) constructBufferLimit(downstream *Downstream) st
// constructRouteTimeout constructs the route timeout config.
func (g *GlobalOptionController) constructRouteTimeout(downstream *Downstream) string {
if downstream.RouteTimeout == 0 {
return ""
}
return fmt.Sprintf(`
{
"route": {