Stop pretending to support anything other than HTTP(s)

svn path=/trunk/netsurf/; revision=11966
This commit is contained in:
John Mark Bell 2011-03-12 00:06:15 +00:00
parent a2d7cc9df1
commit 997e829b3d
1 changed files with 4 additions and 2 deletions

View File

@ -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,