diff --git a/examples/async-curl/src/ftp.c b/examples/async-curl/src/ftp.c index 97470aa..ab5736e 100644 --- a/examples/async-curl/src/ftp.c +++ b/examples/async-curl/src/ftp.c @@ -47,7 +47,7 @@ state_setup(struct http_request *req) client = http_state_create(req, sizeof(*client), NULL); if (!kore_curl_init(client, - "http://ftp.eu.openbsd.org/pub/OpenBSD/README")) { + "http://ftp.eu.openbsd.org/pub/OpenBSD/README", KORE_CURL_ASYNC)) { http_response(req, 500, NULL, 0); return (HTTP_STATE_COMPLETE); } diff --git a/examples/async-curl/src/http.c b/examples/async-curl/src/http.c index 6ecc433..a05514b 100644 --- a/examples/async-curl/src/http.c +++ b/examples/async-curl/src/http.c @@ -62,7 +62,7 @@ state_setup(struct http_request *req) client = http_state_create(req, sizeof(*client), NULL); /* Initialize curl. */ - if (!kore_curl_init(client, "https://kore.io")) { + if (!kore_curl_init(client, "https://kore.io", KORE_CURL_ASYNC)) { http_response(req, 500, NULL, 0); return (HTTP_STATE_COMPLETE); }