Commit 0416939c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

common: always reset progress to 0 for downloads

parent 11757980
...@@ -209,6 +209,9 @@ func (d *HTTPDownloader) Download(dst *os.File, src *url.URL) error { ...@@ -209,6 +209,9 @@ func (d *HTTPDownloader) Download(dst *os.File, src *url.URL) error {
return err return err
} }
// Reset our progress
d.progress = 0
// Make the request. We first make a HEAD request so we can check // Make the request. We first make a HEAD request so we can check
// if the server supports range queries. If the server/URL doesn't // if the server supports range queries. If the server/URL doesn't
// support HEAD requests, we just fall back to GET. // support HEAD requests, we just fall back to GET.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment