diff options
Diffstat (limited to 'modules/lfs')
-rw-r--r-- | modules/lfs/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lfs/server.go b/modules/lfs/server.go index 1a15aba001..d618d61853 100644 --- a/modules/lfs/server.go +++ b/modules/lfs/server.go @@ -152,7 +152,7 @@ func getContentHandler(ctx *context.Context) { return } - ctx.Resp.Header().Set("Content-Length", strconv.FormatInt(meta.Size, 10)) + ctx.Resp.Header().Set("Content-Length", strconv.FormatInt(meta.Size-fromByte, 10)) ctx.Resp.Header().Set("Content-Type", "application/octet-stream") filename := ctx.Params("filename") |