1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Send a HEAD before the GET when -N and --content-disposition are used together.

This commit is contained in:
Giuseppe Scrivano 2010-06-14 19:24:47 +02:00
parent aca9f566b6
commit 117c25970b
2 changed files with 8 additions and 1 deletions

View 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

View 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);