forked from TrueCloudLab/frostfs-http-gw
[#65] Supported object Content-Type
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
fe899f7304
commit
9a49e2c85e
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ func (r *request) receiveFile(clnt client.Object, objectAddress *object.Address)
|
||||||
}
|
}
|
||||||
r.Response.Header.Set("Last-Modified",
|
r.Response.Header.Set("Last-Modified",
|
||||||
time.Unix(value, 0).Format(time.RFC1123))
|
time.Unix(value, 0).Format(time.RFC1123))
|
||||||
|
case object.AttributeContentType:
|
||||||
|
writer.contentType = val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r.Response.Header.Set("x-object-id", obj.ID().String())
|
r.Response.Header.Set("x-object-id", obj.ID().String())
|
||||||
|
|
Loading…
Reference in a new issue