Skip to content

Commit 367c910

Browse files
authored
Merge pull request #48588 from thaJeztah/fix_platform_api_versions
api: postImagesLoad: fix API version for platform
2 parents 352395c + 7eb508e commit 367c910

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/server/router/image/image_routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (ir *imageRouter) postImagesLoad(ctx context.Context, w http.ResponseWriter
272272
}
273273

274274
var platform *ocispec.Platform
275-
if versions.GreaterThanOrEqualTo(httputils.VersionFromContext(ctx), "1.47") {
275+
if versions.GreaterThanOrEqualTo(httputils.VersionFromContext(ctx), "1.48") {
276276
if formPlatform := r.Form.Get("platform"); formPlatform != "" {
277277
p, err := httputils.DecodePlatform(formPlatform)
278278
if err != nil {

0 commit comments

Comments
 (0)