Skip to content

Commit

Permalink
api: postImagesLoad: fix API version for platform
Browse files Browse the repository at this point in the history
This option was added in f143f4e,
which changed the minimum API version for "save" but forgot to update
the version for "load".

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 7, 2024
1 parent 3bc752c commit 7eb508e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/router/image/image_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7eb508e

Please sign in to comment.