Merge pull request #3297 from thaJeztah/2.7_backport_fix_header

Remove empty Content-Type header
pull/3347/head
João Pereira 2021-01-30 10:28:10 +00:00 committed by GitHub
commit d7362d7e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

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
}