Skip to content

Commit

Permalink
Fix 404 for images with provenance information
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen committed Jan 28, 2023
1 parent d80bfac commit bbd56dd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public String getDigest(String image, String tag)
HttpRequest request = HttpRequest.newBuilder(new URI(url))
// Shotgun-approach: Get whatever the newest is they support as that hopefully matches the local one.
// We compare manifest digests, so this must be the same the client uses.
.header("Accept", "application/vnd.oci.image.index.v1+json")
.header("Accept", "application/vnd.docker.distribution.manifest.list.v2+json")
.header("Accept", "application/vnd.docker.distribution.manifest.v1+json")
.header("Accept", "application/vnd.docker.distribution.manifest.v2+json")
Expand Down

0 comments on commit bbd56dd

Please sign in to comment.