mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Use dt rather than result
This commit is contained in:
parent
9a2ea3938d
commit
da6b3f4b61
@ -450,7 +450,7 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
|
||||
|
||||
if (string_set_contains (blacklist, url))
|
||||
{
|
||||
if (opt.spider)
|
||||
if (opt.spider)
|
||||
{
|
||||
char *referrer = url_string (parent, URL_AUTH_HIDE_PASSWD);
|
||||
DEBUGP (("download_child_p: parent->url is: %s\n", quote (parent->url)));
|
||||
|
@ -780,7 +780,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
|
||||
}
|
||||
|
||||
/* Try to not encode in UTF-8 if fetching failed */
|
||||
if (result != RETROK && utf8_encoded)
|
||||
if (!(*dt & RETROKF) && utf8_encoded)
|
||||
{
|
||||
utf8_encoded = false;
|
||||
/*printf ("[Fallbacking to non-utf8 for `%s'\n", url);*/
|
||||
|
Loading…
Reference in New Issue
Block a user