mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Backport #35277 by @LePau Fix #35276 Signed-off-by: LePau <101608950+LePau@users.noreply.github.com> Co-authored-by: LePau <101608950+LePau@users.noreply.github.com>
This commit is contained in:
		| @@ -111,7 +111,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") | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user