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:
parent
7c7efde683
commit
6218fbed2b
@ -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>
|
2001-11-28 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* progress.c (dot_set_params): If PARAMS is unspecified, use
|
* progress.c (dot_set_params): If PARAMS is unspecified, use
|
||||||
|
@ -202,6 +202,10 @@ http_process_range (const char *hdr, void *arg)
|
|||||||
if (!strncasecmp (hdr, "bytes", 5))
|
if (!strncasecmp (hdr, "bytes", 5))
|
||||||
{
|
{
|
||||||
hdr += 5;
|
hdr += 5;
|
||||||
|
/* "JavaWebServer/1.1.1" sends "bytes: x-y/z", contrary to the
|
||||||
|
HTTP spec. */
|
||||||
|
if (*hdr == ':')
|
||||||
|
++hdr;
|
||||||
hdr += skip_lws (hdr);
|
hdr += skip_lws (hdr);
|
||||||
if (!*hdr)
|
if (!*hdr)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user