From dc0253b0637bbf367ad330612900e780c6b2b0e6 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Thu, 25 Aug 2022 18:05:21 +0200 Subject: Replace `ServeStream` with `ServeContent` (#20903) * Replace ServeStream with ServeContent. * Update modules/timeutil/timestamp.go Co-authored-by: delvh Co-authored-by: delvh Co-authored-by: Lunny Xiao Co-authored-by: techknowlogick --- routers/api/packages/maven/maven.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/packages/maven') diff --git a/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go index 072a15f95c..bf00c199f5 100644 --- a/routers/api/packages/maven/maven.go +++ b/routers/api/packages/maven/maven.go @@ -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. -- cgit v1.2.3