]> sjero.net Git - wget/blobdiff - src/http.c
[svn] retr.c (fd_read_body): Pass total size to progress_create, not
[wget] / src / http.c
index e3889bb017a45904a74618780f4d5cce0a5a1f96..40a2fcebe5238d9995560843f8669cf7fffad58a 100644 (file)
@@ -1718,6 +1718,8 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
   if (keep_alive)
     flags |= rb_read_exactly;
   if (hs->restval > 0 && contrange == 0)
+    /* If the server ignored our range request, instruct fd_read_body
+       to skip the first RESTVAL bytes of body.  */
     flags |= rb_skip_startpos;
   hs->len = hs->restval;
   hs->rd_size = 0;