]> sjero.net Git - wget/blobdiff - src/http.c
warc: fix format string for off_t in CDX function.
[wget] / src / http.c
index 02988d20185c1b7316b026d0b05b7049434ca6f8..588847486a5ea93dfe8adafed682663bbd59265f 100644 (file)
@@ -3004,6 +3004,11 @@ http_loop (struct url *u, struct url *original_url, char **newloc,
   if (!opt.spider)
     send_head_first = false;
 
+  /* Send preliminary HEAD request if --content-disposition and -c are used
+     together.  */
+  if (opt.content_disposition && opt.always_rest)
+    send_head_first = true;
+
   /* Send preliminary HEAD request if -N is given and we have an existing
    * destination file. */
   file_name = url_file_name (opt.trustservernames ? u : original_url, NULL);