summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index a4d798d16e..6b7ec321d9 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -351,6 +351,11 @@ func runWeb(ctx *cli.Context) error {
}
defer fr.Close()
+ if err := attach.IncreaseDownloadCount(); err != nil {
+ ctx.Handle(500, "Update", err)
+ return
+ }
+
if err = repo.ServeData(ctx, attach.Name, fr); err != nil {
ctx.Handle(500, "ServeData", err)
return