]> sjero.net Git - wget/commitdiff
Send a HEAD before the GET when -N and --content-disposition are used together.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 14 Jun 2010 17:24:47 +0000 (19:24 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 14 Jun 2010 17:24:47 +0000 (19:24 +0200)
src/ChangeLog
src/http.c

index c1a1a894ae1e280a38da7a98bed1c888b51be823..84cdfc2ed4d52e90b3c42aa8ba3c7566acab4886 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-14  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       * http.c (http_loop): Always send a HEAD request when -N is used
+       together with --content-disposition.
+       Reported by: Jochen Roderburg <Roderburg@Uni-Koeln.DE>.
+
 2010-06-10  Muthu Subramanian K <muthusuba@gmail.com> (tiny change)
 
        * http.c (http_loop): Increase `total_downloaded_bytes' by
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);