fix EOF during mirror update

see http://stackoverflow.com/a/19006050
This commit is contained in:
Szymon Sobik
2015-06-19 12:36:28 +02:00
parent 38dfe3435a
commit 4c51350517

View File

@@ -145,6 +145,7 @@ func (downloader *downloaderImpl) handleTask(task *downloadTask) {
task.result <- fmt.Errorf("%s: %s", task.url, err)
return
}
req.Close = true
proxyURL, _ := downloader.client.Transport.(*http.Transport).Proxy(req)
if proxyURL == nil && (req.URL.Scheme == "http" || req.URL.Scheme == "https") {