From 79b4cee9d3bff266e0272204eff15ebe506f6661 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 16 Feb 2009 20:24:54 +0000 Subject: Make redirects behave as a NOP wrt the verifiability of fetches. Apparently, the interweb depends on this. svn path=/trunk/netsurf/; revision=6542 --- content/fetch.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'content/fetch.c') diff --git a/content/fetch.c b/content/fetch.c index 779e1f12d..a421f621a 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -585,6 +585,19 @@ const char *fetch_get_parent_url(struct fetch *fetch) return fetch->verifiable ? fetch->url : fetch->parent_fetch_url; } +/** + * Determine if a fetch was verifiable + * + * \param fetch Fetch to consider + * \return Verifiable status of fetch + */ +bool fetch_get_verifiable(struct fetch *fetch) +{ + assert(fetch); + + return fetch->verifiable; +} + void fetch_send_callback(fetch_msg msg, struct fetch *fetch, const void *data, unsigned long size) -- cgit v1.2.3