Skip to content

Commit

Permalink
fix release bug (labring#5051)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearslyricattack authored Sep 6, 2024
1 parent bab49b7 commit 47001c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (t *Client) pullManifest(username string, password string, hostName string,
return nil, err
}
req.SetBasicAuth(username, password)
req.Header.Set("Accept", "application/vnd.oci.image.manifest.v1+json")
req.Header.Set("Accept", "application/vnd.docker.distribution.manifest.v2+json")

resp, err := client.Do(req)
if err != nil {
Expand Down Expand Up @@ -127,7 +127,7 @@ func (t *Client) pushManifest(username string, password string, hostName string,
}

req.SetBasicAuth(username, password)
req.Header.Set("Content-type", "application/vnd.oci.image.manifest.v1+json")
req.Header.Set("Content-type", "application/vnd.docker.distribution.manifest.v2+json")

resp, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit 47001c9

Please sign in to comment.