]> sjero.net Git - wget/commitdiff
[svn] Enqueue start_url in the canonical form.
authorhniksic <devnull@localhost>
Wed, 19 Dec 2001 14:27:29 +0000 (06:27 -0800)
committerhniksic <devnull@localhost>
Wed, 19 Dec 2001 14:27:29 +0000 (06:27 -0800)
Published in <sxsofkvi8zx.fsf@florida.arsdigita.de>.

src/ChangeLog
src/recur.c

index 5d5c8e4c44146d38d5e3919917d171fd119842fb..4359c8f374a73820214cf1760b8ca0628f54e5d7 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * recur.c (retrieve_tree): Enqueue the canonical representation of
+       start_url, so that the test against dl_url_file_map works.
+
 2001-12-19  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * log.c (logputs): Check for requested verbosity before printing
index 2105407163bc4464da0ee1e7fe7c616486972e9e..fa6327d525226f6c64dda1e13d1ebde2e74e0ebd 100644 (file)
@@ -196,8 +196,10 @@ retrieve_tree (const char *start_url)
      now. */
   struct url *start_url_parsed = url_parse (start_url, NULL);
 
-  url_enqueue (queue, xstrdup (start_url), NULL, 0);
-  string_set_add (blacklist, start_url);
+  /* Enqueue the starting URL.  Use start_url_parsed->url rather than
+     just URL so we enqueue the canonical form of the URL.  */
+  url_enqueue (queue, xstrdup (start_url_parsed->url), NULL, 0);
+  string_set_add (blacklist, start_url_parsed->url);
 
   while (1)
     {