From 35e1bfad5ab96f6daead13e18773dad8763a3bb2 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Thu, 14 Nov 2024 08:46:16 -0800 Subject: [PATCH] [xDS] add auto_host_rewrite to human-readable form of route config (#38119) Missed this in #37087. Closes #38119 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38119 from markdroth:xds_route_to_string_includes_auto_host_rewrite 64e75359a5cf8f524c2a73c7063fc4153c5cb80f PiperOrigin-RevId: 696537855 --- src/core/xds/grpc/xds_route_config.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/xds/grpc/xds_route_config.cc b/src/core/xds/grpc/xds_route_config.cc index 5c94d6a88246d..b035a033b47f1 100644 --- a/src/core/xds/grpc/xds_route_config.cc +++ b/src/core/xds/grpc/xds_route_config.cc @@ -199,6 +199,7 @@ std::string XdsRouteConfigResource::Route::RouteAction::ToString() const { if (max_stream_duration.has_value()) { contents.push_back(max_stream_duration->ToString()); } + if (auto_host_rewrite) contents.push_back("auto_host_rewrite=true"); return absl::StrCat("{", absl::StrJoin(contents, ", "), "}"); }