[#1471] eacl: Don't process object headers twice in response processing

It is redundant to process object headers in responses w/o object field
since result will be the same.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/fyrchik/changelog
Leonard Lyubich 2022-06-02 17:21:56 +03:00 committed by LeL
parent 8b94cb22d3
commit f9504c1cba
1 changed files with 0 additions and 3 deletions

View File

@ -143,9 +143,6 @@ func (h *cfg) objectHeaders() ([]eaclSDK.Header, error) {
}
case responseXHeaderSource:
switch resp := m.resp.(type) {
default:
hs, _ := h.localObjectHeaders(h.cnr, h.obj)
return hs, nil
case *objectV2.GetResponse:
if v, ok := resp.GetBody().GetObjectPart().(*objectV2.GetObjectPartInit); ok {
oV2 := new(objectV2.Object)