From 5807777df0da2d78fdf1e362085bd0a2f65ab17c Mon Sep 17 00:00:00 2001 From: Andy Royle Date: Mon, 19 Nov 2018 17:02:19 +0000 Subject: [PATCH] append metadata to outgoing context --- proxy/grpc_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/grpc_handler.go b/proxy/grpc_handler.go index 3af727d2d..642dd5a7c 100644 --- a/proxy/grpc_handler.go +++ b/proxy/grpc_handler.go @@ -86,6 +86,7 @@ func GetGRPCDirector(cfg *config.Config, tlscfg *tls.Config) func(ctx context.Co } newCtx := context.Background() + newCtx = metadata.NewOutgoingContext(newCtx, md) conn, err := grpc.DialContext(newCtx, target.URL.Host, opts...) return newCtx, conn, err