forked from TrueCloudLab/frostfs-s3-gw
[#310] Support response headers overriding
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
f19c9315ea
commit
2b4ed8487b
3 changed files with 29 additions and 1 deletions
|
@ -67,3 +67,13 @@ const (
|
|||
const (
|
||||
QueryVersionID = "versionId"
|
||||
)
|
||||
|
||||
// ResponseModifiers maps response modifies headers to regular headers.
|
||||
var ResponseModifiers = map[string]string{
|
||||
"response-content-type": ContentType,
|
||||
"response-content-language": ContentLanguage,
|
||||
"response-expires": Expires,
|
||||
"response-cache-control": CacheControl,
|
||||
"response-content-disposition": ContentDisposition,
|
||||
"response-content-encoding": ContentEncoding,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue