From 07309888d66c608977b31955215503dc355c7d33 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 27 Nov 2011 14:14:36 +0000 Subject: 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 --- content/fetchers/data.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/fetchers/data.c') 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, -- cgit v1.2.3