Merge pull request #4017 from bloodorangeio/octet-stream-fix
Set octet-stream content-type on put request
This commit is contained in:
commit
5abacb62da
@ -204,6 +204,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
|
|||||||
q.Add("digest", desc.Digest.String())
|
q.Add("digest", desc.Digest.String())
|
||||||
|
|
||||||
req = p.request(lhost, http.MethodPut)
|
req = p.request(lhost, http.MethodPut)
|
||||||
|
req.header.Set("Content-Type", "application/octet-stream")
|
||||||
req.path = lurl.Path + "?" + q.Encode()
|
req.path = lurl.Path + "?" + q.Encode()
|
||||||
}
|
}
|
||||||
p.tracker.SetStatus(ref, Status{
|
p.tracker.SetStatus(ref, Status{
|
||||||
|
Loading…
Reference in New Issue
Block a user