Fix regression (Test-c-partial-no-content-length)
Rev 4318b1cccf8e "Don't download content just to ignore it."
caused "wget -c" to fail on resources without Content-Length,
saying "The file is already fully retrieved; nothing to do."
Fix it by checking content-length was set before trying to
compare it with the already downloded filesize.
The above fix is available to be pulled (along with a test case) with
hg pull -r 9e9c63037f9f https://[email protected]/sourcejedi/wget-aj/
[Note the -r switch!].
I have also implemented support for transparent decompression
(Content-Encoding: gzip). This is based on the regression fix; the
combined changes are available with
hg pull https://[email protected]/sourcejedi/wget-aj/
and the commits can also be browsed online at
<http://bitbucket.org/sourcejedi/wget-aj/>
Regards
Alan