We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e702211 commit ade8cefCopy full SHA for ade8cef
get_http.go
@@ -443,7 +443,7 @@ func (g *HttpGetter) GetFile(dst string, src *url.URL) error {
443
if headResp.StatusCode == 200 {
444
// If the HEAD request succeeded, then attempt to set the range
445
// query if we can.
446
- if headResp.Header.Get("Accept-Ranges") == "bytes" && headResp.ContentLength >= 0 {
+ if headResp.Header.Get("Accept-Ranges") == "bytes" && headResp.ContentLength > 0 {
447
if fi, err := f.Stat(); err == nil {
448
if _, err = f.Seek(0, io.SeekEnd); err == nil {
449
currentFileSize = fi.Size()
0 commit comments