Disable HTTP Keepalives for b2d iso download

Signed-off-by: Fabian Ruff <fabian@progra.de>
This commit is contained in:
Fabian Ruff 2015-03-17 22:19:55 +01:00
parent ac51f9abbd
commit ca4fe2a2cb
1 changed files with 3 additions and 2 deletions

View File

@ -22,8 +22,9 @@ func defaultTimeout(network, addr string) (net.Conn, error) {
func getClient() *http.Client {
transport := http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: defaultTimeout,
DisableKeepAlives: true,
Proxy: http.ProxyFromEnvironment,
Dial: defaultTimeout,
}
client := http.Client{