]> sjero.net Git - wget/blobdiff - src/http.c
Send a HEAD before the GET when -N and --content-disposition are used together.
[wget] / src / http.c
index c3ec2e0d976a3d1d023002ea28560701013d9e53..ace3bfe56d1ba4adb8aea31c5884a2a45b6e233c 100644 (file)
@@ -2680,7 +2680,8 @@ File %s already there; not retrieving.\n\n"),
   /* Send preliminary HEAD request if -N is given and we have an existing
    * destination file. */
   file_name = url_file_name (u);
-  if (opt.timestamping && file_exists_p (file_name))
+  if (opt.timestamping && (file_exists_p (file_name)
+                           || opt.content_disposition))
     send_head_first = true;
   xfree (file_name);