From 87dfc1c4686275509ece346b2d20540bb6251700 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 16 Nov 2022 16:45:53 -0500 Subject: [PATCH] blob nil on repeat --- routers/api/packages/container/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/packages/container/container.go b/routers/api/packages/container/container.go index b6b2a8164..78f884a7d 100644 --- a/routers/api/packages/container/container.go +++ b/routers/api/packages/container/container.go @@ -371,7 +371,7 @@ func getBlobFromContext(ctx *context.Context) (*packages_model.PackageFileDescri // https://github.com/opencontainers/distribution-spec/blob/main/spec.md#checking-if-content-exists-in-the-registry func HeadBlob(ctx *context.Context) { blob, err := getBlobFromContext(ctx) - fmt.Println("HeadBlob: ", blob.File.CompositeKey) + fmt.Println("HeadBlob: ", ctx.Params("digest")) if err != nil { fmt.Println("getBlobFromContext err: ", err.Error()) if err == container_model.ErrContainerBlobNotExist {