[#131] Fix metadata in HeadObject and GetObject

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2021-07-08 23:44:18 +03:00
parent e8bf46a2fa
commit da9a6e4b33

View file

@ -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)
}
}