Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 1b21586

Browse files
committed
fix: remove NopCloser to get the right content-length set
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
1 parent b05830d commit 1b21586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/hub/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (h *Client) Login(hubAuthConfig types.AuthConfig) (string, error) {
4747
body := bytes.NewBuffer(data)
4848

4949
// Login on the Docker Hub
50-
req, err := http.NewRequest("POST", h.Domain+LoginURL, ioutil.NopCloser(body))
50+
req, err := http.NewRequest("POST", h.Domain+LoginURL, body)
5151
if err != nil {
5252
return "", err
5353
}

0 commit comments

Comments
 (0)