diff options
| author | Calin <[email protected]> | 2022-07-13 05:50:31 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-13 04:50:31 -0700 |
| commit | 9db5de109c166aa802b85cfae2dced3c4728a00d (patch) | |
| tree | ea6290eb952764ba64cde11180fea48b5008fad9 /README.md | |
| parent | 7bff4ca7addde8cc54c38f5db1e50fa420189a20 (diff) | |
Set BasicAuth in http.go only if username and password are not empty (#914)
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.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
