mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
changes for allowing proxy server to fetch release binaries (#13439)
This commit is contained in:
parent
1a01c0547b
commit
b99244845a
1 changed files with 1 additions and 6 deletions
|
|
@ -5,7 +5,6 @@ package release
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
|
|
@ -80,11 +79,7 @@ func (g *Getter) Get(what string, opts plugingetter.GetOptions) (io.ReadCloser,
|
|||
}
|
||||
|
||||
if g.HttpClient == nil {
|
||||
g.HttpClient = &http.Client{
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
},
|
||||
}
|
||||
g.HttpClient = &http.Client{}
|
||||
}
|
||||
|
||||
var req *http.Request
|
||||
|
|
|
|||
Loading…
Reference in a new issue