Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
Change-Id: I263a32472edca9424337823f0145862d65171e91
Signed-off-by: Kuat Yessenov <[email protected]>
  • Loading branch information
kyessenov committed May 22, 2024
1 parent 148d9cb commit a50af46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/upstream/upstream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit a50af46

Please sign in to comment.