From: hniksic Date: Wed, 19 Dec 2001 14:27:29 +0000 (-0800) Subject: [svn] Enqueue start_url in the canonical form. X-Git-Tag: v1.13~1864 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=8db12642186609c9c73f65278d9eb98e795e50ae [svn] Enqueue start_url in the canonical form. Published in . --- 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) {