Use dt rather than result

This commit is contained in:
Saint Xavier 2008-07-20 18:20:18 +02:00
parent 9a2ea3938d
commit da6b3f4b61
2 changed files with 2 additions and 2 deletions

View File

@ -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)));

View File

@ -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);*/