diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-11-27 14:14:36 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-11-27 14:14:36 +0000 |
commit | 07309888d66c608977b31955215503dc355c7d33 (patch) | |
tree | 9cef52ee828b9e8231b1bf1db1716e6fba7fe3e5 /content/fetchers/data.c | |
parent | f32fa6fa0ea54696cac77ee6de5c55b21ca889a5 (diff) | |
download | netsurf-07309888d66c608977b31955215503dc355c7d33.tar.gz netsurf-07309888d66c608977b31955215503dc355c7d33.tar.bz2 |
return;
Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched.
svn path=/trunk/netsurf/; revision=13182
Diffstat (limited to 'content/fetchers/data.c')
-rw-r--r-- | content/fetchers/data.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c index bc2349733..80b48b0e4 100644 --- a/content/fetchers/data.c +++ b/content/fetchers/data.c @@ -75,6 +75,11 @@ static void fetch_data_finalise(lwc_string *scheme) curl_easy_cleanup(curl); } +static bool fetch_data_can_fetch(const nsurl *url) +{ + return true; +} + static void *fetch_data_setup(struct fetch *parent_fetch, nsurl *url, bool only_2xx, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, @@ -330,6 +335,7 @@ void fetch_data_register(void) fetch_add_fetcher(scheme, fetch_data_initialise, + fetch_data_can_fetch, fetch_data_setup, fetch_data_start, fetch_data_abort, |