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:
parent
0efd1b3902
commit
c4d3e25a63
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user