From: Giuseppe Scrivano Date: Mon, 14 Jun 2010 17:24:47 +0000 (+0200) Subject: Send a HEAD before the GET when -N and --content-disposition are used together. X-Git-Tag: v1.13~140 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=117c25970b830538b4b869a23e61316198cd3f7c Send a HEAD before the GET when -N and --content-disposition are used together. --- diff --git a/src/ChangeLog b/src/ChangeLog index c1a1a894..84cdfc2e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-06-14 Giuseppe Scrivano + + * http.c (http_loop): Always send a HEAD request when -N is used + together with --content-disposition. + Reported by: Jochen Roderburg . + 2010-06-10 Muthu Subramanian K (tiny change) * http.c (http_loop): Increase `total_downloaded_bytes' by diff --git a/src/http.c b/src/http.c index c3ec2e0d..ace3bfe5 100644 --- a/src/http.c +++ b/src/http.c @@ -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);