You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
fix: nil transport
This commit is contained in:
committed by
Carlos Alexandro Becker
parent
6a87444e5f
commit
55169a8c60
@ -26,7 +26,7 @@ func NewGitHub(ctx *context.Context) (Client, error) {
|
|||||||
)
|
)
|
||||||
httpClient := oauth2.NewClient(ctx, ts)
|
httpClient := oauth2.NewClient(ctx, ts)
|
||||||
base := httpClient.Transport.(*oauth2.Transport).Base
|
base := httpClient.Transport.(*oauth2.Transport).Base
|
||||||
if base != nil {
|
if &base != nil {
|
||||||
base = http.DefaultTransport
|
base = http.DefaultTransport
|
||||||
}
|
}
|
||||||
base.(*http.Transport).TLSClientConfig = &tls.Config{
|
base.(*http.Transport).TLSClientConfig = &tls.Config{
|
||||||
|
Reference in New Issue
Block a user