]> sjero.net Git - wget/commitdiff
[svn] Accept the broken Content-Range format emitted by Sun's server.
authorhniksic <devnull@localhost>
Thu, 29 Nov 2001 14:03:33 +0000 (06:03 -0800)
committerhniksic <devnull@localhost>
Thu, 29 Nov 2001 14:03:33 +0000 (06:03 -0800)
Published in <sxsg06x7kld.fsf@florida.arsdigita.de>.

src/ChangeLog
src/http.c

index 0dea6fddc86afb2990aa8e1960ffbe2d2c6c2bbe..cfccccec00d23165f751fb4669f13937b276c3a2 100644 (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
index b0f70946615060f279c05dbd8a390e11288b4434..3f9d8b0a6e78425c81dc5b2175193abe73e0ab86 100644 (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;