diff --git a/src/ChangeLog b/src/ChangeLog index 5d5c8e4c..4359c8f3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-12-19 Hrvoje Niksic + + * 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 * log.c (logputs): Check for requested verbosity before printing diff --git a/src/recur.c b/src/recur.c index 21054071..fa6327d5 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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) {