Merge pull request #3289 from Smasherr/master

#3288 Remove empty Content-Type header
This commit is contained in:
Arko Dasgupta 2020-11-13 18:03:30 -08:00 committed by GitHub
commit 551158e600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,7 +757,12 @@ func (bs *blobs) Create(ctx context.Context, options ...distribution.BlobCreateO
return nil, err
}
resp, err := bs.client.Post(u, "", nil)
req, err := http.NewRequest("POST", u, nil)
if err != nil {
return nil, err
}
resp, err := bs.client.Do(req)
if err != nil {
return nil, err
}