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

Commit

Permalink
Generate payload
Browse files Browse the repository at this point in the history
  • Loading branch information
tt committed Oct 3, 2018
1 parent 100efed commit d9d104c
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,12 +105,12 @@ 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)

body, err := signedManifest.MarshalJSON()
_, payload, err := signedManifest.Payload()
if err != nil {
return err
}

buffer := bytes.NewBuffer(body)
buffer := bytes.NewBuffer(payload)
req, err := http.NewRequest("PUT", url, buffer)
if err != nil {
return err
Expand Down

0 comments on commit d9d104c

Please sign in to comment.