summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 00:06:15 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 00:06:15 +0000
commit997e829b3d63513997ae1f6adccde30cda0eb95b (patch)
treeafce9deb5cbe3b35a91d19d20302efd709a0e390 /content/fetchers
parenta2d7cc9df1acac0ed2521ffa4e4d96cf0582e354 (diff)
downloadnetsurf-997e829b3d63513997ae1f6adccde30cda0eb95b.tar.gz
netsurf-997e829b3d63513997ae1f6adccde30cda0eb95b.tar.bz2
Stop pretending to support anything other than HTTP(s)
svn path=/trunk/netsurf/; revision=11966
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/curl.c6
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,