[svn] Enqueue start_url in the canonical form.

Published in <sxsofkvi8zx.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2001-12-19 06:27:29 -08:00
parent 001cac91a4
commit 8db1264218
2 changed files with 9 additions and 2 deletions

View 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

View 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)
{