mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 16:29:36 +03:00
Just use corestring refs.
This commit is contained in:
parent
c4e2fff5a4
commit
178f3945b8
@ -46,6 +46,7 @@
|
|||||||
#include "content/urldb.h"
|
#include "content/urldb.h"
|
||||||
#include "desktop/netsurf.h"
|
#include "desktop/netsurf.h"
|
||||||
#include "desktop/gui_factory.h"
|
#include "desktop/gui_factory.h"
|
||||||
|
#include "utils/corestrings.h"
|
||||||
#include "utils/nsoption.h"
|
#include "utils/nsoption.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "utils/messages.h"
|
#include "utils/messages.h"
|
||||||
@ -236,18 +237,10 @@ void fetch_curl_register(void)
|
|||||||
|
|
||||||
for (i = 0; data->protocols[i]; i++) {
|
for (i = 0; data->protocols[i]; i++) {
|
||||||
if (strcmp(data->protocols[i], "http") == 0) {
|
if (strcmp(data->protocols[i], "http") == 0) {
|
||||||
if (lwc_intern_string("http", SLEN("http"),
|
scheme = lwc_string_ref(corestring_lwc_http);
|
||||||
&scheme) != lwc_error_ok) {
|
|
||||||
die("Failed to initialise the fetch module "
|
|
||||||
"(couldn't intern \"http\").");
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (strcmp(data->protocols[i], "https") == 0) {
|
} else if (strcmp(data->protocols[i], "https") == 0) {
|
||||||
if (lwc_intern_string("https", SLEN("https"),
|
scheme = lwc_string_ref(corestring_lwc_https);
|
||||||
&scheme) != lwc_error_ok) {
|
|
||||||
die("Failed to initialise the fetch module "
|
|
||||||
"(couldn't intern \"https\").");
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* Ignore non-http(s) protocols */
|
/* Ignore non-http(s) protocols */
|
||||||
|
Loading…
Reference in New Issue
Block a user