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

Commit 9ef288b

Browse files
authored
Merge pull request #175 from eunomie/fix-login
fix: remove NopCloser to get the right content-length set
2 parents b05830d + 1b21586 commit 9ef288b

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)