At 2007-01-06 04:59, Steven M. Schweda wrote:
>From: Sampo Niskanen
>
>> While downloading a 12GB file, I noticed that wget (version 1.10.2)
>> crashed when trying to download it. After examining it a bit, I
>> discovered that the Apache server falsely sends the header
>> "Content-Length: -649674338" (the truncated 32-bit signed value of the
>> true length). When using --ignore-length the file is retrieved normally.
>
>   I'd guess that the problem could be helped (a little) by a small
>change in src/http.c:
>
>   Original:
>      if (parsed == WGINT_MAX && errno == ERANGE)
>
>   Proposed:
>      if ((parsed == WGINT_MAX && errno == ERANGE) || (parsed < 0))
>

Maybe Apache sources have to be patched to send correct size, too.
I suggest to Sampo to check out page http://httpd.apache.org/bug_report.html and report the issue there.


Reply via email to