forked from TrueCloudLab/frostfs-http-gw
update format
This commit is contained in:
parent
f9e1e50da1
commit
0e1fea52c6
1 changed files with 1 additions and 2 deletions
|
@ -142,8 +142,7 @@ func receiveObject(c *fasthttp.RequestCtx, cli object.Service_GetClient) error {
|
||||||
if hdr.Key == object.FilenameHeader {
|
if hdr.Key == object.FilenameHeader {
|
||||||
if put {
|
if put {
|
||||||
content_disp_type = "attachment"
|
content_disp_type = "attachment"
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
content_disp_type = "inline"
|
content_disp_type = "inline"
|
||||||
}
|
}
|
||||||
// NOTE: we use path.Base because hdr.Value can be something like `/path/to/filename.ext`
|
// NOTE: we use path.Base because hdr.Value can be something like `/path/to/filename.ext`
|
||||||
|
|
Loading…
Reference in a new issue