From 93010cae90282f0d0038feda5e5e66bee53c1c37 Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Thu, 8 Jun 2023 10:53:58 +0200 Subject: [PATCH 1/2] docs/specs/api: fix Content-Type typo Signed-off-by: Irene Diez --- docs/spec/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/api.md b/docs/spec/api.md index b8a3df996..a4370c24b 100644 --- a/docs/spec/api.md +++ b/docs/spec/api.md @@ -3393,7 +3393,7 @@ POST /v2//blobs/uploads/?digest= Host: Authorization: Content-Length: -Content-Type: application/octect-stream +Content-Type: application/octet-stream ``` From 421a97ffab062f3f11c67424a92b6f2b646c95c8 Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Thu, 8 Jun 2023 11:04:04 +0200 Subject: [PATCH 2/2] registry/api/v2: fix ContentType in RouteNameBlobUpload Sets 'application/octet-stream' as the ContentType in the Body of RouteNameBlobUpload. Signed-off-by: Irene Diez --- registry/api/v2/descriptors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/api/v2/descriptors.go b/registry/api/v2/descriptors.go index 8622d0d21..9d1cfdb8e 100644 --- a/registry/api/v2/descriptors.go +++ b/registry/api/v2/descriptors.go @@ -987,7 +987,7 @@ var routeDescriptors = []RouteDescriptor{ }, }, Body: BodyDescriptor{ - ContentType: "application/octect-stream", + ContentType: "application/octet-stream", Format: "", }, Successes: []ResponseDescriptor{