We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4e407 commit 9915a85Copy full SHA for 9915a85
pkg/v1/remote/referrers.go
@@ -66,7 +66,7 @@ func (f *fetcher) fetchReferrers(ctx context.Context, filter map[string]string,
66
}
67
68
var b []byte
69
- if resp.StatusCode == http.StatusOK {
+ if resp.StatusCode == http.StatusOK && resp.Header.Get("Content-Type") == string(types.OCIImageIndex) {
70
b, err = io.ReadAll(resp.Body)
71
if err != nil {
72
return nil, err
0 commit comments