mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix a regression when -c and --content-dispositionn are used together.
This commit is contained in:
parent
6e4c3ab999
commit
fe401688a6
1
NEWS
1
NEWS
@ -12,6 +12,7 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
|
||||
|
||||
** Support FTP listing for the FTP Server on Windows Server 2008 R2.
|
||||
|
||||
** Fix a regression when -c and --content-disposition are used together.
|
||||
|
||||
* Changes in Wget 1.14
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2012-10-06 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* http.c (http_loop): Send a HEAD request when -c and
|
||||
--content-disposition are used together.
|
||||
|
||||
2012-09-29 Merinov Nikolay <kim.roader@gmail.com>
|
||||
|
||||
* ftp-ls.c (ftp_parse_winnt_ls): Support filename extracting with
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user