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

tokarchuk/v1.17
Jacob Parry 7 years ago committed by Lauris BH
parent cdc4600725
commit 6e2e7b325f
  1. 2
      modules/lfs/server.go

@ -152,7 +152,7 @@ func getContentHandler(ctx *context.Context) {
return 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") ctx.Resp.Header().Set("Content-Type", "application/octet-stream")
filename := ctx.Params("filename") filename := ctx.Params("filename")

Loading…
Cancel
Save