diff --git a/internal/contour/listener.go b/internal/contour/listener.go index 5024bd51922..5f4ede37fe2 100644 --- a/internal/contour/listener.go +++ b/internal/contour/listener.go @@ -186,6 +186,7 @@ const ( router = "envoy.router" grpcWeb = "envoy.grpc_web" + gzip = "envoy.gzip" httpFilter = "envoy.http_connection_manager" accessLog = "envoy.file_access_log" ) @@ -295,6 +296,9 @@ func httpfilter(routename, accessLogPath string) listener.Filter { }), }), "http_filters": lv( + st(map[string]*types.Value{ + "name": sv(gzip), + }), st(map[string]*types.Value{ "name": sv(grpcWeb), }), diff --git a/internal/e2e/lds_test.go b/internal/e2e/lds_test.go index fe82bed9880..a96bb37b6e7 100644 --- a/internal/e2e/lds_test.go +++ b/internal/e2e/lds_test.go @@ -1095,6 +1095,7 @@ func httpfilter(routename string) listener.Filter { }}, UseRemoteAddress: &types.BoolValue{Value: true}, HttpFilters: []*envoy_config_v2_http_conn_mgr.HttpFilter{ + {Name: "envoy.gzip"}, {Name: "envoy.grpc_web"}, {Name: "envoy.router"}, },