]> sjero.net Git - wget/commitdiff
[svn] Fix #20747: Wget was returning error for non-recursive --spider when file exists.
authormicah <devnull@localhost>
Thu, 30 Aug 2007 04:34:34 +0000 (21:34 -0700)
committermicah <devnull@localhost>
Thu, 30 Aug 2007 04:34:34 +0000 (21:34 -0700)
src/ChangeLog
src/http.c

index 4c7de37ce89615b1425ea914c0c71d15ab211288..6165534ed5efc4b213fc99a6ce27cfaffe80f146 100644 (file)
 2007-08-24  Micah Cowan  <micah@cowan.name>
 
        * http.c (http_loop): Introduced time_came_from_head boolean
-       flag, to help avoid parsing the same Last-Modified header twice,
+       flag, to help avoid parsing the same Last-Modified header twice.
+       Replaced spidering returns of RETRUNNEEDED for some situations,
+       to RETROK, as otherwise it will be interpreted as an error.
+       RETRUNNEEDED appears never to be referenced outside of
+       http.c (and wget.h), and, when returned by gethttp, is
+       translated by http_loop to RETROK.
 
 2007-08-23  Joshua David Williams  <yurimxpxman@gmail.com>
 
index 0dec22358256d813841196821a498e9c3221d3fa..0e292918612a0fa861c9b8365b637303dfa2678a 100644 (file)
@@ -2619,7 +2619,7 @@ Remote file exists and could contain links to other resources -- retrieving.\n\n
                     {
                       logprintf (LOG_VERBOSE, _("\
 Remote file exists but does not contain any link -- not retrieving.\n\n"));
-                      ret = RETRUNNEEDED;
+                      ret = RETROK; /* RETRUNNEEDED is not for caller. */
                       goto exit;
                     }
                 }
@@ -2627,7 +2627,7 @@ Remote file exists but does not contain any link -- not retrieving.\n\n"));
                 {
                   logprintf (LOG_VERBOSE, _("\
 Remote file exists but recursion is disabled -- not retrieving.\n\n"));
-                  ret = RETRUNNEEDED;
+                  ret = RETROK; /* RETRUNNEEDED is not for caller. */
                   goto exit;
                 }
             }