Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Change-Id: I250b225c56f82271926bc13ce2e94194517d5abb
Signed-off-by: Kuat Yessenov <kuat@google.com>
  • Loading branch information
kyessenov committed May 24, 2024
1 parent 9ae5dd9 commit 6ec8f16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/config/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ envoy_cc_test_library(
"@envoy_api//envoy/config/listener/v3:pkg_cc_proto",
"@envoy_api//envoy/config/route/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/access_loggers/file/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/http/upstream_codec/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/transport_sockets/quic/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg_cc_proto",
Expand Down
6 changes: 5 additions & 1 deletion test/config/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "envoy/config/listener/v3/listener_components.pb.h"
#include "envoy/config/route/v3/route_components.pb.h"
#include "envoy/extensions/access_loggers/file/v3/file.pb.h"
#include "envoy/extensions/filters/http/upstream_codec/v3/upstream_codec.pb.h"
#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h"
#include "envoy/extensions/transport_sockets/quic/v3/quic_transport.pb.h"
#include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h"
Expand Down Expand Up @@ -1252,7 +1253,10 @@ void ConfigHelper::prependFilter(const std::string& config, bool downstream) {
["envoy.extensions.upstreams.http.v3.HttpProtocolOptions"]);
}
if (old_protocol_options.http_filters().empty()) {
old_protocol_options.add_http_filters()->set_name("envoy.filters.http.upstream_codec");
auto* codec_filter = old_protocol_options.add_http_filters();
codec_filter->set_name("envoy.filters.http.upstream_codec");
codec_filter->mutable_typed_config()->PackFrom(
envoy::extensions::filters::http::upstream_codec::v3::UpstreamCodec::default_instance());
}
auto* filter_list_back = old_protocol_options.add_http_filters();
#ifdef ENVOY_ENABLE_YAML
Expand Down

0 comments on commit 6ec8f16

Please sign in to comment.