From aeb583a0bc2411d2973904b77ad679e873adf073 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 4 Nov 2017 09:23:55 +0000 Subject: [PATCH] Improve readability. Former-commit-id: 684d5ef09624509fb041e47539dc0a568d1e8ac8 [formerly 3d0b8b2e61c5a60174a1fd8b06f8d1e8a55120d5] [formerly fc6cb1f278dbaa90d7db1c4c96cb3c1cbff06c5f [formerly ac88aab3eb2dd1ddc85083ec99e56ee98f3ad242]] Former-commit-id: 80493535e416cad297aed47e8a8dd018d2fd2346 [formerly 3522c56e45bc8c0e2c89177f96c7f812f6c9a6ef] Former-commit-id: 3096eb9e8abeee11f2ea447aeacfa681464a1252 --- http/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/download.go b/http/download.go index 556427e3..0b8666eb 100644 --- a/http/download.go +++ b/http/download.go @@ -108,7 +108,7 @@ func downloadFileHandler(c *fm.Context, w http.ResponseWriter, r *http.Request) if r.URL.Query().Get("inline") == "true" { w.Header().Set("Content-Disposition", "inline") } else { - w.Header().Set("Content-Disposition", "attachment; filename=\""+c.File.Name+"\"") + w.Header().Set("Content-Disposition", `attachment; filename="`+c.File.Name+`"`) } http.ServeFile(w, r, c.File.Path)