mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix LFS not returning correct content length when requesting a range of bytes (#2864)
This commit is contained in:
		@@ -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")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user