Improve readability.

pull/291/head
Henrique Dias 2017-11-04 09:23:55 +00:00
parent 45a6fd563f
commit ac88aab3eb
1 changed files with 1 additions and 1 deletions

View File

@ -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)