Skip to content

Commit 0266ee5

Browse files
GiteaBotLePau
andauthored
Fix LFS range size header response (#35277) (#35293)
Backport #35277 by @LePau Fix #35276 Signed-off-by: LePau <[email protected]> Co-authored-by: LePau <[email protected]>
1 parent ac03e65 commit 0266ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/lfs/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func DownloadHandler(ctx *context.Context) {
111111
}
112112
}
113113

114-
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size-fromByte))
114+
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size))
115115
ctx.Resp.Header().Set("Access-Control-Expose-Headers", "Content-Range")
116116
}
117117
}

0 commit comments

Comments
 (0)