From ac5e6dffa070649898d34238168a399b91139fc2 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 4 Dec 2024 11:32:23 +0300 Subject: [PATCH] create outgoing metadata automatic on request Signed-off-by: Vasiliy Tolstov --- grpc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/grpc.go b/grpc.go index b76270f..4af9101 100644 --- a/grpc.go +++ b/grpc.go @@ -295,6 +295,7 @@ func (g *Server) handler(srv interface{}, stream grpc.ServerStream) error { // create new context ctx = metadata.NewIncomingContext(ctx, md) + ctx = metadata.NewOutgoingContext(ctx, metadata.New(0)) stream = &streamWrapper{ctx, stream}