[#125] Set object ids in a separate function

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-02-15 12:13:43 +03:00 committed by LeL
parent 2764fabf04
commit 39c29c6d6a
2 changed files with 10 additions and 6 deletions

View file

@ -176,9 +176,8 @@ func (r request) receiveFile(clnt pool.Object, objectAddress *object.Address) {
contentType = val
}
}
r.Response.Header.Set(hdrObjectID, obj.ID().String())
r.Response.Header.Set(hdrOwnerID, obj.OwnerID().String())
r.Response.Header.Set(hdrContainerID, obj.ContainerID().String())
idsToResponse(&r.Response, obj)
if len(contentType) == 0 {
if readDetector.err != nil {