summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 3d0c977798..f5553cdf00 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -336,11 +336,7 @@ func runWeb(ctx *cli.Context) error {
}
defer fr.Close()
- ctx.Header().Set("Cache-Control", "public,max-age=86400")
- ctx.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s"`, attach.Name))
- // Fix #312. Attachments with , in their name are not handled correctly by Google Chrome.
- // We must put the name in " manually.
- if err = repo.ServeData(ctx, "\""+attach.Name+"\"", fr); err != nil {
+ if err = repo.ServeData(ctx, attach.Name, fr); err != nil {
ctx.Handle(500, "ServeData", err)
return
}