mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-18 19:27:35 +00:00
Fix LFS range size header response (#35277)
Fix #35276 Signed-off-by: LePau <101608950+LePau@users.noreply.github.com>
This commit is contained in:
parent
621f2fcadb
commit
08a7e65c84
@ -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…
Reference in New Issue
Block a user