diff --git a/downloader/head.go b/downloader/head.go index eafed21..3267228 100644 --- a/downloader/head.go +++ b/downloader/head.go @@ -4,6 +4,7 @@ import ( "io" "net/http" "strconv" + "strings" "time" "github.com/nspcc-dev/neofs-http-gw/response" @@ -55,6 +56,9 @@ func (r request) headObject(clnt *pool.Pool, objectAddress oid.Address) { if !isValidToken(key) || !isValidValue(val) { continue } + if strings.HasPrefix(key, utils.SystemAttributePrefix) { + key = systemBackwardTranslator(key) + } r.Response.Header.Set(utils.UserAttributeHeaderPrefix+key, val) switch key { case object.AttributeTimestamp: