mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Backport of #21834 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								9ba4ef93ff
							
						
					
				
			
			
				commit
				
					
						ff4e292b3f
					
				
			
		
					 19 changed files with 162 additions and 40 deletions
				
			
		|  | @ -95,7 +95,10 @@ func DownloadPackageFile(ctx *context.Context) { | |||
| 	} | ||||
| 	defer s.Close() | ||||
| 
 | ||||
| 	ctx.ServeContent(pf.Name, s, pf.CreatedUnix.AsLocalTime()) | ||||
| 	ctx.ServeContent(s, &context.ServeHeaderOptions{ | ||||
| 		Filename:     pf.Name, | ||||
| 		LastModified: pf.CreatedUnix.AsLocalTime(), | ||||
| 	}) | ||||
| } | ||||
| 
 | ||||
| // UploadPackageFile adds a file to the package. If the package does not exist, it gets created. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue