Adjust for new kore_curl_init()

This commit is contained in:
Joris Vink 2019-10-21 21:20:16 +02:00
parent a119f18a23
commit 0430c36a08
2 changed files with 2 additions and 2 deletions

View File

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

View File

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