From 1bb6c5f384aaad4661e6dd94ddc5c71e1dd57146 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Mon, 29 Nov 2021 22:11:07 +0300 Subject: [PATCH] [#111] Fix X- headers Signed-off-by: Angira Kekteeva --- downloader/download.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/downloader/download.go b/downloader/download.go index 7cd25e5..d669cfb 100644 --- a/downloader/download.go +++ b/downloader/download.go @@ -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 {