Skip to content

Commit

Permalink
check for 406 status code when handling referrers endpoint response (#…
Browse files Browse the repository at this point in the history
…2026)

Signed-off-by: Meredith Lancaster <[email protected]>
  • Loading branch information
malancas authored Oct 28, 2024
1 parent 4630c40 commit a9a53a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/remote/referrers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a9a53a8

Please sign in to comment.