Browse Source

Fix LFS not returning correct content length when requesting a range of bytes (#2864)

tags/v1.3.0-rc1
Jacob Parry 6 years ago
parent
commit
6e2e7b325f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/lfs/server.go

+ 1
- 1
modules/lfs/server.go View File

@@ -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")

Loading…
Cancel
Save