From 8a050874c96170ed6e43ebf4dc235a8833075a0a Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 3 Dec 2021 08:37:45 -0800 Subject: [PATCH] Fix exposing "host" metadata (#28268) --- src/core/lib/surface/call.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/lib/surface/call.cc b/src/core/lib/surface/call.cc index 331faa345f4..082ba66fd2c 100644 --- a/src/core/lib/surface/call.cc +++ b/src/core/lib/surface/call.cc @@ -970,6 +970,10 @@ class PublishToAppEncoder { Append(grpc_core::UserAgentMetadata::key(), slice); } + void Encode(grpc_core::HostMetadata, const grpc_core::Slice& slice) { + Append(grpc_core::HostMetadata::key(), slice); + } + void Encode(grpc_core::GrpcPreviousRpcAttemptsMetadata, uint32_t count) { Append(grpc_core::GrpcPreviousRpcAttemptsMetadata::key(), count); }