]> sjero.net Git - wget/commitdiff
Hack to make -c work again without HEAD.
authorMicah Cowan <micah@cowan.name>
Fri, 5 Oct 2007 06:00:08 +0000 (23:00 -0700)
committerMicah Cowan <micah@cowan.name>
Fri, 5 Oct 2007 06:00:08 +0000 (23:00 -0700)
src/http.c

index 11af939a170fc20d073795988b13ef717d0a1b5b..d723a3105ba1e45f6b0e5ea22c60f0c8cc424b16 100644 (file)
@@ -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;