diff options
Diffstat (limited to 'routers/api/v1/repo/blob.go')
-rw-r--r-- | routers/api/v1/repo/blob.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go index 3b116666ea..f38086954b 100644 --- a/routers/api/v1/repo/blob.go +++ b/routers/api/v1/repo/blob.go @@ -41,7 +41,7 @@ func GetBlob(ctx *context.APIContext) { // "404": // "$ref": "#/responses/notFound" - sha := ctx.Params("sha") + sha := ctx.PathParam("sha") if len(sha) == 0 { ctx.Error(http.StatusBadRequest, "", "sha not provided") return |