summaryrefslogtreecommitdiff
path: root/http.go
AgeCommit message (Collapse)Author
2022-07-13Set BasicAuth in http.go only if username and password are not empty (#914)Calin
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.
2021-09-05Add support for managed HTTP/S transports (#810)lhchavez
This change uses the newly-exposed Transport interface to use Go's implementation of http.Client instead of httpclient via libgit2.