downloader: ensure downloader/uploader header symmetry

Use X-Attribute-* everywhere.
This commit is contained in:
Roman Khimov 2021-04-30 12:55:51 +03:00 committed by Roman Khimov
parent e80d147d72
commit 293debe6db
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ func (r *request) receiveFile(options *neofs.GetOptions) {
if !isValidToken(key) || !isValidValue(val) {
continue
}
r.Response.Header.Set("x-"+key, val)
r.Response.Header.Set("X-Attribute-"+key, val)
switch key {
case object.AttributeFileName:
filename = val