diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-16 20:24:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-16 20:24:54 +0000 |
commit | 79b4cee9d3bff266e0272204eff15ebe506f6661 (patch) | |
tree | 8e10c8afbff9ad5867dfa507be8543c23f442ea5 /content/fetch.c | |
parent | e89384911f08b748bcbd81bad24810de38b14e76 (diff) | |
download | netsurf-79b4cee9d3bff266e0272204eff15ebe506f6661.tar.gz netsurf-79b4cee9d3bff266e0272204eff15ebe506f6661.tar.bz2 |
Make redirects behave as a NOP wrt the verifiability of fetches.
Apparently, the interweb depends on this.
svn path=/trunk/netsurf/; revision=6542
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 13 |
1 files changed, 13 insertions, 0 deletions
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) |