[#111] Fix X- headers

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2021-11-29 22:11:07 +03:00 committed by Alex Vanin
parent d6dd244756
commit 1bb6c5f384

View file

@ -175,9 +175,9 @@ func (r request) receiveFile(clnt pool.Object, objectAddress *object.Address) {
contentType = val
}
}
r.Response.Header.Set("x-object-id", obj.ID().String())
r.Response.Header.Set("x-owner-id", obj.OwnerID().String())
r.Response.Header.Set("x-container-id", obj.ContainerID().String())
r.Response.Header.Set("X-Object-Id", obj.ID().String())
r.Response.Header.Set("X-Owner-Id", obj.OwnerID().String())
r.Response.Header.Set("X-Container-Id", obj.ContainerID().String())
if len(contentType) == 0 {
if readDetector.err != nil {