Skip to content

Commit

Permalink
upstream-filter: update default upstream filter type
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
  • Loading branch information
adisuissa committed Sep 17, 2024
1 parent cea046f commit b778fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/common/upstream/upstream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,8 @@ ClusterInfoImpl::ClusterInfoImpl(
if (http_filters.empty()) {
auto* codec_filter = http_filters.Add();
codec_filter->set_name("envoy.filters.http.upstream_codec");
codec_filter->mutable_typed_config()->set_type_url(upstream_codec_type_url);
codec_filter->mutable_typed_config()->set_type_url(
absl::StrCat("type.googleapis.com/", upstream_codec_type_url));
} else {
const auto last_type_url =
Config::Utility::getFactoryType(http_filters[http_filters.size() - 1].typed_config());
Expand Down

0 comments on commit b778fe1

Please sign in to comment.