diff options
Diffstat (limited to 'routers/web/repo/download.go')
-rw-r--r-- | routers/web/repo/download.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/download.go b/routers/web/repo/download.go index 802e8e6a62..8c4da34060 100644 --- a/routers/web/repo/download.go +++ b/routers/web/repo/download.go @@ -139,7 +139,7 @@ func SingleDownloadOrLFS(ctx *context.Context) { // DownloadByID download a file by sha1 ID func DownloadByID(ctx *context.Context) { - blob, err := ctx.Repo.GitRepo.GetBlob(ctx.Params("sha")) + blob, err := ctx.Repo.GitRepo.GetBlob(ctx.PathParam("sha")) if err != nil { if git.IsErrNotExist(err) { ctx.NotFound("GetBlob", nil) @@ -155,7 +155,7 @@ func DownloadByID(ctx *context.Context) { // DownloadByIDOrLFS download a file by sha1 ID taking account of LFS func DownloadByIDOrLFS(ctx *context.Context) { - blob, err := ctx.Repo.GitRepo.GetBlob(ctx.Params("sha")) + blob, err := ctx.Repo.GitRepo.GetBlob(ctx.PathParam("sha")) if err != nil { if git.IsErrNotExist(err) { ctx.NotFound("GetBlob", nil) |