Stop pretending to support anything other than HTTP(s)
svn path=/trunk/netsurf/; revision=11966
This commit is contained in:
parent
a2d7cc9df1
commit
997e829b3d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue