From 997e829b3d63513997ae1f6adccde30cda0eb95b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 12 Mar 2011 00:06:15 +0000 Subject: Stop pretending to support anything other than HTTP(s) svn path=/trunk/netsurf/; revision=11966 --- content/fetchers/curl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content') diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index f272777b4..86983ea28 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -213,8 +213,10 @@ void fetch_curl_register(void) data = curl_version_info(CURLVERSION_NOW); for (i = 0; data->protocols[i]; i++) { - if (strcmp(data->protocols[i], "file") == 0) - continue; /* do not use curl for file: */ + /* Ignore non-http(s) protocols */ + if (strcmp(data->protocols[i], "http") != 0 && + strcmp(data->protocols[i], "https") != 0) + continue; if (!fetch_add_fetcher(data->protocols[i], fetch_curl_initialise, -- cgit v1.2.3