summaryrefslogtreecommitdiffstats
path: root/routers/repo/attachment.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/attachment.go')
-rw-r--r--routers/repo/attachment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go
index 5b699abc8d..5df9cdbf12 100644
--- a/routers/repo/attachment.go
+++ b/routers/repo/attachment.go
@@ -152,7 +152,7 @@ func GetAttachment(ctx *context.Context) {
return
}
- if err = ServeData(ctx, attach.Name, fr); err != nil {
+ if err = ServeData(ctx, attach.Name, attach.Size, fr); err != nil {
ctx.ServerError("ServeData", err)
return
}