🧱 Chunk is a download manager for slow and unstable servers

Size detection is HEAD-only with no fallback #26

Open cuducos.me
Open opened by cuducos.me

Problem

getDownloadSize relies solely on HEAD (downloader.go:198-268). Servers that reject HEAD (403/405) or return no Content-Length/Content-Range cannot be downloaded at all.

Impact

The tool fails on servers that only support ranged GET.

Suggested fix

Fall back to a ranged GET (bytes=0-0) and read the total size from Content-Range.

Sign up or Sign in to add to the discussion.