X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fretr.c;fp=src%2Fretr.c;h=54937d862bc3dcb0f0d064ac06dc19b017944198;hp=2b42454a17c609021bb04eaf2356124b99abf554;hb=1e09ee5ea8d903c49f2b465f5f459b0746f17a3a;hpb=37c85ecba31b22de68cca986c2c8757f709dd058 diff --git a/src/retr.c b/src/retr.c index 2b42454a..54937d86 100644 --- a/src/retr.c +++ b/src/retr.c @@ -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)