From da9a6e4b3354f2aaad19bc534057dc94f11cda10 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Thu, 8 Jul 2021 23:44:18 +0300 Subject: [PATCH] [#131] Fix metadata in HeadObject and GetObject Signed-off-by: Angira Kekteeva --- api/handler/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/get.go b/api/handler/get.go index e8eb73f1..eaef90a9 100644 --- a/api/handler/get.go +++ b/api/handler/get.go @@ -69,7 +69,7 @@ func writeHeaders(h http.Header, info *layer.ObjectInfo) { h.Set(api.ETag, info.HashSum) for key, val := range info.Headers { - h.Set("X-"+key, val) + h.Set(api.MetadataPrefix+key, val) } }