mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Remove unnecessary code.
This commit is contained in:
parent
cea1f0718d
commit
c5dc4d1664
@ -1,3 +1,8 @@
|
|||||||
|
2010-10-21 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* retr.c (retrieve_url): Do not register HTML files twice.
|
||||||
|
Reported by: Manfred Koizar <mkoi-pg@aon.at>.
|
||||||
|
|
||||||
2010-10-18 Manfred Koizar <mkoi-pg@aon.at> (tiny change)
|
2010-10-18 Manfred Koizar <mkoi-pg@aon.at> (tiny change)
|
||||||
|
|
||||||
* html-url.c (tag_handle_link): Do not assume external links type
|
* html-url.c (tag_handle_link): Do not assume external links type
|
||||||
|
11
src/retr.c
11
src/retr.c
@ -871,21 +871,16 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
|
|||||||
if (local_file && u && *dt & RETROKF)
|
if (local_file && u && *dt & RETROKF)
|
||||||
{
|
{
|
||||||
register_download (u->url, local_file);
|
register_download (u->url, local_file);
|
||||||
|
|
||||||
if (redirection_count && 0 != strcmp (origurl, u->url))
|
if (redirection_count && 0 != strcmp (origurl, u->url))
|
||||||
register_redirection (origurl, u->url);
|
register_redirection (origurl, u->url);
|
||||||
|
|
||||||
if (*dt & TEXTHTML)
|
if (*dt & TEXTHTML)
|
||||||
register_html (u->url, local_file);
|
register_html (u->url, local_file);
|
||||||
if (*dt & RETROKF)
|
|
||||||
{
|
|
||||||
register_download (u->url, local_file);
|
|
||||||
if (redirection_count && 0 != strcmp (origurl, u->url))
|
|
||||||
register_redirection (origurl, u->url);
|
|
||||||
if (*dt & TEXTHTML)
|
|
||||||
register_html (u->url, local_file);
|
|
||||||
if (*dt & TEXTCSS)
|
if (*dt & TEXTCSS)
|
||||||
register_css (u->url, local_file);
|
register_css (u->url, local_file);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (file)
|
if (file)
|
||||||
*file = local_file ? local_file : NULL;
|
*file = local_file ? local_file : NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user