1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Accept the broken Content-Range format emitted by Sun's server.

Published in <sxsg06x7kld.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2001-11-29 06:03:33 -08:00
parent 7c7efde683
commit 6218fbed2b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-11-29 Hrvoje Niksic <hniksic@arsdigita.com>
* http.c (http_process_range): Accept the broken output of
"JavaWebServer/1.1.1".
2001-11-28 Hrvoje Niksic <hniksic@arsdigita.com>
* progress.c (dot_set_params): If PARAMS is unspecified, use

View File

@ -202,6 +202,10 @@ http_process_range (const char *hdr, void *arg)
if (!strncasecmp (hdr, "bytes", 5))
{
hdr += 5;
/* "JavaWebServer/1.1.1" sends "bytes: x-y/z", contrary to the
HTTP spec. */
if (*hdr == ':')
++hdr;
hdr += skip_lws (hdr);
if (!*hdr)
return 0;