Fix missed x-header set in converters

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-17 20:23:42 +03:00 committed by Stanislav Bogatyrev
parent b197e382ca
commit c96598713e

View file

@ -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
}