Browse Source

Fix LFS range size header response (#35277)

Fix #35276

Signed-off-by: LePau <101608950+LePau@users.noreply.github.com>
pull/35300/head
LePau 4 months ago committed by GitHub
parent
commit
08a7e65c84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      services/lfs/server.go

2
services/lfs/server.go

@ -114,7 +114,7 @@ func DownloadHandler(ctx *context.Context) { @@ -114,7 +114,7 @@ func DownloadHandler(ctx *context.Context) {
}
}
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size-fromByte))
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size))
ctx.Resp.Header().Set("Access-Control-Expose-Headers", "Content-Range")
}
}

Loading…
Cancel
Save