0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-25 09:30:39 +00:00

Remove timeout on client otherwise large files won't download

This commit is contained in:
Don 2019-10-11 15:27:55 -07:00
parent 0efd1b3902
commit c4d3e25a63

View File

@ -47,7 +47,6 @@ func networkFlags() []cli.Flag {
func NetworkFromContext(ctx *cli.Context) Network { func NetworkFromContext(ctx *cli.Context) Network {
// Create the client // Create the client
client := &http.Client{ client := &http.Client{
Timeout: 10 * time.Second,
Transport: &http.Transport{ Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment, Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{ DialContext: (&net.Dialer{