Skip to content

Commit 1f6ea50

Browse files
authored
Merge pull request #4028 from estesp/cp-1.2-4017
[release/1.2] backport: Set octet-stream content-type on put request
2 parents 89c46ed + 567ca67 commit 1f6ea50

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
@@ -193,6 +193,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
193193
respC := make(chan *http.Response, 1)
194194

195195
req.Body = ioutil.NopCloser(pr)
196+
req.Header.Set("Content-Type", "application/octet-stream")
196197
req.ContentLength = desc.Size
197198

198199
go func() {

0 commit comments

Comments
 (0)