Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Dec 26, 2024
1 parent 2fb0f5b commit 29f953a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crproxy_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ func (c *CRProxy) cacheManifestResponse(rw http.ResponseWriter, r *http.Request,
return
}

r.Header.Set("Accept", "application/vnd.oci.image.index.v1+json,application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.v2+json")

resp, err := c.httpClient.Do(r)
if err != nil {
if c.fallbackServeCachedManifest(rw, r, info) {
Expand Down

0 comments on commit 29f953a

Please sign in to comment.