From f9e1e50da1ce0e2d6d313d59c400cd7a91e470f5 Mon Sep 17 00:00:00 2001 From: "anatoly@nspcc.ru" Date: Wed, 10 Jun 2020 20:28:09 +0300 Subject: [PATCH] update format --- receive.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/receive.go b/receive.go index 8a714b1..ad4ff19 100644 --- a/receive.go +++ b/receive.go @@ -142,7 +142,10 @@ func receiveObject(c *fasthttp.RequestCtx, cli object.Service_GetClient) error { if hdr.Key == object.FilenameHeader { if put { content_disp_type = "attachment" - } else { content_disp_type = "inline"} + } + else { + content_disp_type = "inline" + } // NOTE: we use path.Base because hdr.Value can be something like `/path/to/filename.ext` c.Response.Header.Set("Content-Disposition", content_disp_type+"; filename="+path.Base(hdr.Value)) }