Skip to content

Commit 09b3b4f

Browse files
jdolitskyestesp
authored andcommitted
Set octet-stream content-type on put request
Signed-off-by: Josh Dolitsky <[email protected]> Signed-off-by: Phil Estes <[email protected]>
1 parent c4697a8 commit 09b3b4f

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)