mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-19 12:16:30 +00:00
resources: Increase timeout for http.Client
Increase timeout for http.Client in resources.GetRemote from 10 second to 1 minute Fixes #10478
This commit is contained in:
1 parent
d373774cbe
commit
a49e51fd0b
1 file changed
+1
-1
@@ -45,7 +45,7 @@ func New(rs *resources.Spec) *Client {
|
||||
return &Client{
|
||||
rs: rs,
|
||||
httpClient: &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
Timeout: time.Minute,
|
||||
},
|
||||
cacheGetResource: rs.FileCaches.GetResourceCache(),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user