Skip to content

Commit

Permalink
Remove empty Content-Type header
Browse files Browse the repository at this point in the history
Fixes #3288

Signed-off-by: Smasherr <soundcracker@gmail.com>
(cherry picked from commit c8d90f9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
Smasherr authored and thaJeztah committed Nov 16, 2020
1 parent 70e0022 commit cf8615d
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 cf8615d

Please sign in to comment.