Remove empty Content-Type header

Fixes #3288

Signed-off-by: Smasherr <soundcracker@gmail.com>
pull/3289/head
Smasherr 2020-11-03 12:24:02 +01:00 committed by Daniel Estermann
parent f5cdc24dd3
commit c8d90f904f
1 changed files with 6 additions and 1 deletions

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
}