Merge pull request #4017 from bloodorangeio/octet-stream-fix

Set octet-stream content-type on put request
This commit is contained in:
Phil Estes
2020-02-12 10:51:30 -08:00
committed by GitHub

View File

@@ -204,6 +204,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
q.Add("digest", desc.Digest.String())
req = p.request(lhost, http.MethodPut)
req.header.Set("Content-Type", "application/octet-stream")
req.path = lurl.Path + "?" + q.Encode()
}
p.tracker.SetStatus(ref, Status{