From 09729c948de8c977a316e8a970242abf2258a14b Mon Sep 17 00:00:00 2001 From: Kuat Yessenov Date: Wed, 22 May 2024 21:25:24 +0000 Subject: [PATCH] fix warning Change-Id: I263a32472edca9424337823f0145862d65171e91 Signed-off-by: Kuat Yessenov --- source/common/upstream/upstream_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/common/upstream/upstream_impl.cc b/source/common/upstream/upstream_impl.cc index 3a7715aab12a..8a561f892182 100644 --- a/source/common/upstream/upstream_impl.cc +++ b/source/common/upstream/upstream_impl.cc @@ -1290,7 +1290,9 @@ ClusterInfoImpl::ClusterInfoImpl( codec_filter->mutable_typed_config()->PackFrom( envoy::extensions::filters::http::upstream_codec::v3::UpstreamCodec::default_instance()); } - if (http_filters[http_filters.size() - 1].name() != "envoy.filters.http.upstream_codec") { + if (http_filters[http_filters.size() - 1].typed_config().type_url() != + TypeUtil::descriptorFullNameToTypeUrl( + "envoy.extensions.filters.http.upstream_codec.v3.UpstreamCodec")) { throwEnvoyExceptionOrPanic( fmt::format("The codec filter is the only valid terminal upstream HTTP filter")); }