Downloads rejected responses without a size
Pulling a file from a URL failed with request is missing ContentLength for GitHub and pastebin links. Those servers gzip the response, Go decompresses it on its own and reports the length as -1, and chunked responses have no length at all. The check was there because of the disk limit.
The disk limit is checked while writing
Filesystem.Write now treats a negative size as unknown: it writes the data to a temporary file under the disk limit and only renames it over the target once done. If the data does not fit, the temporary file goes away and the old file stays as it was. With an unknown size the progress stays at zero until the download finishes, and downloads with a known size work as before. Tests against an httptest server cover gzip, chunked transfer and going over the limit.