Skip to content

Commit

Permalink
Merge pull request #3297 from thaJeztah/2.7_backport_fix_header
Browse files Browse the repository at this point in the history
Remove empty Content-Type header
  • Loading branch information
joaodrp committed Jan 30, 2021
2 parents 70e0022 + cf8615d commit d7362d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion registry/client/repository.go
Expand Up @@ -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
}
Expand Down

0 comments on commit d7362d7

Please sign in to comment.