mirror of
https://github.com/alibaba/higress.git
synced 2026-06-06 03:07:28 +08:00
optimize default action of route envoyfilter (#985)
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user