Remove empty Content-Type header

Fixes #3288

Signed-off-by: Smasherr <soundcracker@gmail.com>
(cherry picked from commit c8d90f904f)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Smasherr 2020-11-03 12:24:02 +01:00 committed by Sebastiaan van Stijn
parent 70e0022e42
commit cf8615dedf
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -736,7 +736,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
}