Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08a7e65

Browse files
authored
Fix LFS range size header response (#35277)
Fix #35276 Signed-off-by: LePau <[email protected]>
1 parent 621f2fc commit 08a7e65

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
@@ -114,7 +114,7 @@ func DownloadHandler(ctx *context.Context) {
114114
}
115115
}
116116

117-
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size-fromByte))
117+
ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, toByte, meta.Size))
118118
ctx.Resp.Header().Set("Access-Control-Expose-Headers", "Content-Range")
119119
}
120120
}

0 commit comments

Comments
 (0)