mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-26 08:58:24 +00:00 
			
		
		
		
	Refactor packages (func name & UI) (#34773)
1. Use `OpenXxx` instead of `GetXxx` because the returned readers should be correctly closed, and clarify the behaviors of the functions: they increase the download counter 2. Use `packages-content` styles instead of `issue-content`
This commit is contained in:
		| @@ -343,7 +343,7 @@ func DownloadPackage(ctx *context.Context) { | ||||
|  | ||||
| 	pf := pd.Files[0].File | ||||
|  | ||||
| 	s, u, _, err := packages_service.GetPackageFileStream(ctx, pf) | ||||
| 	s, u, _, err := packages_service.OpenFileForDownload(ctx, pf) | ||||
| 	if err != nil { | ||||
| 		apiError(ctx, http.StatusInternalServerError, err) | ||||
| 		return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user