From: Micah Cowan Date: Fri, 5 Oct 2007 06:00:08 +0000 (-0700) Subject: Hack to make -c work again without HEAD. X-Git-Tag: v1.13~522 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=7d33170f7fb9820bf0fb44733590948b12141d69 Hack to make -c work again without HEAD. --- diff --git a/src/http.c b/src/http.c index 11af939a..d723a310 100644 --- a/src/http.c +++ b/src/http.c @@ -2344,6 +2344,11 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer, hstat.local_file = xstrdup (opt.output_document); got_name = true; } + else if (!opt.content_disposition) + { + hstat.local_file = url_file_name (u); + got_name = true; + } /* Reset the counter. */ count = 0;