forked from TrueCloudLab/frostfs-api-go
Fix missed x-header set in converters
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
b197e382ca
commit
c96598713e
1 changed files with 8 additions and 0 deletions
|
@ -217,6 +217,8 @@ func RequestMetaHeaderToGRPCMessage(r *RequestMetaHeader) *service.RequestMetaHe
|
||||||
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
|
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.SetXHeaders(xHdrMsg)
|
||||||
|
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -253,6 +255,8 @@ func RequestMetaHeaderFromGRPCMessage(m *service.RequestMetaHeader) *RequestMeta
|
||||||
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
|
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.SetXHeaders(xHeaders)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -469,6 +473,8 @@ func ResponseMetaHeaderToGRPCMessage(r *ResponseMetaHeader) *service.ResponseMet
|
||||||
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
|
xHdrMsg = append(xHdrMsg, XHeaderToGRPCMessage(xHeaders[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.SetXHeaders(xHdrMsg)
|
||||||
|
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -497,6 +503,8 @@ func ResponseMetaHeaderFromGRPCMessage(m *service.ResponseMetaHeader) *ResponseM
|
||||||
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
|
xHeaders = append(xHeaders, XHeaderFromGRPCMessage(xHdrMsg[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.SetXHeaders(xHeaders)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue