diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-12 00:06:15 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-12 00:06:15 +0000 |
commit | 997e829b3d63513997ae1f6adccde30cda0eb95b (patch) | |
tree | afce9deb5cbe3b35a91d19d20302efd709a0e390 | |
parent | a2d7cc9df1acac0ed2521ffa4e4d96cf0582e354 (diff) | |
download | netsurf-997e829b3d63513997ae1f6adccde30cda0eb95b.tar.gz netsurf-997e829b3d63513997ae1f6adccde30cda0eb95b.tar.bz2 |
Stop pretending to support anything other than HTTP(s)
svn path=/trunk/netsurf/; revision=11966
-rw-r--r-- | content/fetchers/curl.c | 6 |
1 files changed, 4 insertions, 2 deletions
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, |