melbahja / got

Got: Simple golang package and CLI tool to download large files faster 🏃 than cURL and Wget!
MIT License
722 stars 46 forks source link

Fixing TestChunksLength [test is still broken] #55

Closed ink-splatters closed 2 years ago

ink-splatters commented 2 years ago

Hi,

took another 5 min to fix the panic in the mentioned test. Seems http://www.ovh.net does not provide (anymore?) content-range header - just in case you would want to fix ultimately.

Cheers, Peter

melbahja commented 2 years ago

Looks like ovh changed the link to:

https://proof.ovh.net/files/10Mb.dat
ink-splatters commented 2 years ago

Looks like ovh changed the link to:

https://proof.ovh.net/files/10Mb.dat

Thanks, seems to have fixed the test.

At least one more is broken: downloadOkFileContentTest complains about Content-Length in some case.