From af2775fb0a378f5c608f0dafb29409709aca306e Mon Sep 17 00:00:00 2001 From: Corey Quon Date: Tue, 18 Jun 2019 10:00:13 -0700 Subject: [PATCH] Add multiple Accept headers to Manifest query Signed-off-by: Corey Quon --- registry/manifest.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registry/manifest.go b/registry/manifest.go index c25a1963d..3386db001 100644 --- a/registry/manifest.go +++ b/registry/manifest.go @@ -30,6 +30,8 @@ func (r *Registry) Manifest(ctx context.Context, repository, ref string) (distri } req.Header.Add("Accept", schema2.MediaTypeManifest) + req.Header.Add("Accept", schema1.MediaTypeManifest) + req.Header.Add("Accept", manifestlist.MediaTypeManifestList) resp, err := r.Client.Do(req.WithContext(ctx)) if err != nil {