From a9a53a8ed535e262e7fd26e98937274984dd715c Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Mon, 28 Oct 2024 11:16:53 -0600 Subject: [PATCH] check for 406 status code when handling referrers endpoint response (#2026) Signed-off-by: Meredith Lancaster --- pkg/v1/remote/referrers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/v1/remote/referrers.go b/pkg/v1/remote/referrers.go index 48e3835f9..4bc6f70a8 100644 --- a/pkg/v1/remote/referrers.go +++ b/pkg/v1/remote/referrers.go @@ -61,7 +61,7 @@ func (f *fetcher) fetchReferrers(ctx context.Context, filter map[string]string, } defer resp.Body.Close() - if err := transport.CheckError(resp, http.StatusOK, http.StatusNotFound, http.StatusBadRequest); err != nil { + if err := transport.CheckError(resp, http.StatusOK, http.StatusNotFound, http.StatusBadRequest, http.StatusNotAcceptable); err != nil { return nil, err }