Set BasicAuth in http.go only if username and password are not empty #914

Merged
clns merged 1 commits from http-basic-auth into main 2022-07-13 06:50:31 -05:00
clns commented 2022-04-20 22:44:48 -05:00 (Migrated from github.com)

This prevents error "read/write on closed pipe".

Go's http.client::send() always closes req.Body, so if the first request attempt
is unsuccessful, any subsequent requests after calling the CredentialsCallback
will attempt to read/write on a closed pipe.

This prevents error "read/write on closed pipe". Go's http.client::send() always closes req.Body, so if the first request attempt is unsuccessful, any subsequent requests after calling the `CredentialsCallback` will attempt to read/write on a closed pipe.
lhchavez (Migrated from github.com) approved these changes 2022-07-13 06:50:26 -05:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#914
No description provided.