From 7eb508e14ce69606a593a63710f40709027ebe08 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 7 Oct 2024 11:40:47 +0200 Subject: [PATCH] api: postImagesLoad: fix API version for platform This option was added in f143f4ec5148e71a10d074ed275af8f63caff339, which changed the minimum API version for "save" but forgot to update the version for "load". Signed-off-by: Sebastiaan van Stijn --- api/server/router/image/image_routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/router/image/image_routes.go b/api/server/router/image/image_routes.go index bf5b865ed0ed0..08a8e04ea3cd5 100644 --- a/api/server/router/image/image_routes.go +++ b/api/server/router/image/image_routes.go @@ -272,7 +272,7 @@ func (ir *imageRouter) postImagesLoad(ctx context.Context, w http.ResponseWriter } var platform *ocispec.Platform - if versions.GreaterThanOrEqualTo(httputils.VersionFromContext(ctx), "1.47") { + if versions.GreaterThanOrEqualTo(httputils.VersionFromContext(ctx), "1.48") { if formPlatform := r.Form.Get("platform"); formPlatform != "" { p, err := httputils.DecodePlatform(formPlatform) if err != nil {