Skip to content

Commit 571a231

Browse files
authored
Merge pull request #4027 from estesp/cp-1.3-4017
[release/1.3] cherry-pick: Set octet-stream content-type on put request
2 parents c4697a8 + 09b3b4f commit 571a231

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

remotes/docker/pusher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
204204
q.Add("digest", desc.Digest.String())
205205

206206
req = p.request(lhost, http.MethodPut)
207+
req.header.Set("Content-Type", "application/octet-stream")
207208
req.path = lurl.Path + "?" + q.Encode()
208209
}
209210
p.tracker.SetStatus(ref, Status{

0 commit comments

Comments
 (0)