]> sjero.net Git - wget/commitdiff
[svn] Skip HEAD request and start immediately with GET if -O is given.
authormtortonesi <devnull@localhost>
Tue, 3 Jul 2007 23:01:25 +0000 (16:01 -0700)
committermtortonesi <devnull@localhost>
Tue, 3 Jul 2007 23:01:25 +0000 (16:01 -0700)
src/ChangeLog
src/http.c

index 951af3942e4d351260faae9a0075f0c70dfe4adf..aa9e01b490fa8c3865271c04b811b8fc0054cc4c 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-04  Mauro Tortonesi  <mauro@ferrara.linux.it>
+
+       * http.c (http_loop): Skip HEAD request and start immediately with GET
+       if -O is given.
+
 2007-02-02  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http.c (print_server_response): Escape non-printable characters
index 1ec42d2891e6668c0bd2e73a2a169aa5163e66d8..0ff820961716c90a319a45b91444dcc2fb5f0b86 100644 (file)
@@ -2343,8 +2343,7 @@ Spider mode enabled. Check if remote file exists.\n"));
       /* Default document type is empty.  However, if spider mode is
          on or time-stamping is employed, HEAD_ONLY commands is
          encoded within *dt.  */
-      if (((opt.spider || opt.timestamping) && !got_head)
-          || (opt.always_rest && !got_name))
+      if (((opt.spider || opt.timestamping) && !got_head) || !got_name)
         *dt |= HEAD_ONLY;
       else
         *dt &= ~HEAD_ONLY;