summaryrefslogtreecommitdiffstats
path: root/routers/api/packages/helm/helm.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/helm/helm.go')
-rw-r--r--routers/api/packages/helm/helm.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go
index 17f0a0d311..11291ca14e 100644
--- a/routers/api/packages/helm/helm.go
+++ b/routers/api/packages/helm/helm.go
@@ -138,7 +138,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(),
+ })
}
// UploadPackage creates a new package