mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Replace ServeStream with ServeContent (#20903)
				
					
				
			* Replace ServeStream with ServeContent. * Update modules/timeutil/timestamp.go Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -177,7 +177,7 @@ func servePackageFile(ctx *context.Context, params parameters) {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ctx.ServeStream(s, pf.Name)
 | 
			
		||||
	ctx.ServeContent(pf.Name, s, pf.CreatedUnix.AsLocalTime())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UploadPackageFile adds a file to the package. If the package does not exist, it gets created.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user