From c96598713ed8bbbe1a3d90edb07a187da9976ad9 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 17 Aug 2020 20:23:42 +0300 Subject: [PATCH] Fix missed x-header set in converters Signed-off-by: Alex Vanin --- v2/service/convert.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v2/service/convert.go b/v2/service/convert.go index 91b173bf..93313ff9 100644 --- a/v2/service/convert.go +++ b/v2/service/convert.go @@ -217,6 +217,8 @@ func RequestMetaHeaderToGRPCMessage(r *RequestMetaHeader) *service.RequestMetaHe xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i])) } + m.SetXHeaders(xHdrMsg) + return m } @@ -253,6 +255,8 @@ func RequestMetaHeaderFromGRPCMessage(m *service.RequestMetaHeader) *RequestMeta xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i])) } + r.SetXHeaders(xHeaders) + return r } @@ -469,6 +473,8 @@ func ResponseMetaHeaderToGRPCMessage(r *ResponseMetaHeader) *service.ResponseMet xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i])) } + m.SetXHeaders(xHdrMsg) + return m } @@ -497,6 +503,8 @@ func ResponseMetaHeaderFromGRPCMessage(m *service.ResponseMetaHeader) *ResponseM xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i])) } + r.SetXHeaders(xHeaders) + return r }