kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0430c36a0869fe7f47c1f156ca769512d2fb4a7d
parent a119f18a23589b3df0e6204e91123ef46efd23c0
Author: Joris Vink <joris@coders.se>
Date:   Mon, 21 Oct 2019 21:20:16 +0200

Adjust for new kore_curl_init()

Diffstat:
examples/async-curl/src/ftp.c | 2+-
examples/async-curl/src/http.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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); }