aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/goproxy/goproxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/goproxy/goproxy.go')
-rw-r--r--routers/api/packages/goproxy/goproxy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/packages/goproxy/goproxy.go b/routers/api/packages/goproxy/goproxy.go
index bde29df739..89ec86bce9 100644
--- a/routers/api/packages/goproxy/goproxy.go
+++ b/routers/api/packages/goproxy/goproxy.go
@@ -106,7 +106,7 @@ func DownloadPackageFile(ctx *context.Context) {
return
}
- s, u, _, err := packages_service.GetPackageFileStream(ctx, pfs[0])
+ s, u, _, err := packages_service.OpenFileForDownload(ctx, pfs[0])
if err != nil {
if errors.Is(err, util.ErrNotExist) {
apiError(ctx, http.StatusNotFound, err)