1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Do not register redirects when in spider mode.

This commit is contained in:
Giuseppe Scrivano 2011-07-26 12:42:40 +02:00
parent 37c85ecba3
commit 1e09ee5ea8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-07-26 Giuseppe Scrivano <gscrivano@southpole.se>
* retr.c (retrieve_url): Do not register redirects when in spider mode.
2011-07-20 Merinov Nikolay <kim.roader@gmail.com>
* iri.c (remote_to_utf8): Add test for non-ASCII symbols with

View File

@ -878,7 +878,7 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
{
register_download (u->url, local_file);
if (redirection_count && 0 != strcmp (origurl, u->url))
if (!opt.spider && redirection_count && 0 != strcmp (origurl, u->url))
register_redirection (origurl, u->url);
if (*dt & TEXTHTML)