From 7ec7aadfbf1baf808adf811b8865e1a06407464e Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 4 Dec 2024 11:33:11 +0300 Subject: [PATCH] create outgoing metadata automatic on request Signed-off-by: Vasiliy Tolstov --- handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler.go b/handler.go index 7ccc2af..3466a6c 100644 --- a/handler.go +++ b/handler.go @@ -382,6 +382,7 @@ func (h *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { md["Host"] = r.Host md["RequestURI"] = r.RequestURI ctx = metadata.NewIncomingContext(ctx, md) + ctx = metadata.NewOutgoingContext(ctx, metadata.New(0)) path := r.URL.Path if !strings.HasPrefix(path, "/") {