mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
[project @ 2004-06-23 11:40:29 by bursa]
Fix destroying of contents after redirects. svn path=/import/netsurf/; revision=996
This commit is contained in:
parent
c5f42cd7c5
commit
ecc3e59fdc
@ -283,7 +283,8 @@ struct content * content_get(const char *url)
|
||||
struct content *c;
|
||||
|
||||
for (c = content_list; c; c = c->next) {
|
||||
if (c->fresh && strcmp(c->url, url) == 0)
|
||||
if (c->fresh && c->status != CONTENT_STATUS_ERROR &&
|
||||
strcmp(c->url, url) == 0)
|
||||
return c;
|
||||
}
|
||||
|
||||
|
@ -278,6 +278,9 @@ void fetchcache_callback(fetch_msg msg, void *p, const char *data,
|
||||
msg_data.error = messages_get("BadRedirect");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
|
||||
}
|
||||
/* set the status to ERROR so that the content is
|
||||
* destroyed in content_clean() */
|
||||
c->status = CONTENT_STATUS_ERROR;
|
||||
break;
|
||||
#ifdef WITH_AUTH
|
||||
case FETCH_AUTH:
|
||||
@ -286,6 +289,9 @@ void fetchcache_callback(fetch_msg msg, void *p, const char *data,
|
||||
c->fetch = 0;
|
||||
msg_data.auth_realm = data;
|
||||
content_broadcast(c, CONTENT_MSG_AUTH, msg_data);
|
||||
/* set the status to ERROR so that the content is
|
||||
* destroyed in content_clean() */
|
||||
c->status = CONTENT_STATUS_ERROR;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user