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:
parent
37c85ecba3
commit
1e09ee5ea8
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user