mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
Improve readability.
This commit is contained in:
parent
45a6fd563f
commit
ac88aab3eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue