mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
changes for allowing proxy server to fetch release binaries
This commit is contained in:
parent
1a01c0547b
commit
91b05b5ac4
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