From 860f5e7b745d71b773fb93c72a9bab28e3787c61 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Mon, 24 Jun 2019 14:37:04 +0200 Subject: [PATCH] imagec: send correct Accept header Signed-off-by: Yoan Blanc --- lib/imagec/docker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/imagec/docker.go b/lib/imagec/docker.go index 4641bb4c80..d4fe7df9ed 100644 --- a/lib/imagec/docker.go +++ b/lib/imagec/docker.go @@ -349,6 +349,7 @@ func FetchImageManifest(op trace.Operation, options Options, schemaVersion int, reqHeaders := make(http.Header) if schemaVersion == 2 { reqHeaders.Add("Accept", schema2.MediaTypeManifest) + } else { reqHeaders.Add("Accept", schema1.MediaTypeManifest) }