Skip to content

Commit

Permalink
Merge pull request moby#48588 from thaJeztah/fix_platform_api_versions
Browse files Browse the repository at this point in the history
api: postImagesLoad: fix API version for platform
  • Loading branch information
neersighted authored Oct 7, 2024
2 parents 352395c + 7eb508e commit 367c910
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 367c910

Please sign in to comment.