Support download resuming beyond 2GB boundary (64 bit offsets)

This commit is contained in:
Steve Streeting 2016-06-09 09:09:58 +01:00
parent 19304ae84f
commit 3574c46ca0

@ -129,7 +129,7 @@ func (a *basicDownloadAdapter) download(t *Transfer, cb TransferProgressCallback
regex := regexp.MustCompile(`bytes (\d+)\-.*`)
match := regex.FindStringSubmatch(rangeHdr)
if match != nil && len(match) > 1 {
contentStart, _ := strconv.ParseInt(match[1], 10, 32)
contentStart, _ := strconv.ParseInt(match[1], 10, 64)
if contentStart == fromByte {
rangeRequestOk = true
} else {