Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Use returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
tt committed Oct 3, 2018
1 parent 1bcbb72 commit 2ffea69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (registry *Registry) PutManifest(repository, reference string, signedManife
url := registry.url("/v2/%s/manifests/%s", repository, reference)
registry.Logf("registry.manifest.put url=%s repository=%s reference=%s", url, repository, reference)

_, payload, err := signedManifest.Payload()
mediaType, payload, err := signedManifest.Payload()
if err != nil {
return err
}
Expand All @@ -116,7 +116,7 @@ func (registry *Registry) PutManifest(repository, reference string, signedManife
return err
}

req.Header.Set("Content-Type", schema1.MediaTypeSignedManifest)
req.Header.Set("Content-Type", mediaType)
resp, err := registry.Client.Do(req)
if resp != nil {
defer resp.Body.Close()
Expand Down

0 comments on commit 2ffea69

Please sign in to comment.