mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Fix a couple of typos in the bundled examples.
This commit is contained in:
parent
bae117b68c
commit
78ff364c8d
@ -122,7 +122,7 @@ state_result(struct http_request *req)
|
||||
*/
|
||||
kore_curl_response_as_bytes(client, &body, &len);
|
||||
|
||||
/* We could check the existance of a header: */
|
||||
/* We could check the existence of a header: */
|
||||
if (kore_curl_http_get_header(client, "server", &header))
|
||||
printf("got server header: '%s'\n", header);
|
||||
|
||||
|
@ -59,7 +59,7 @@ connection_setup(struct connection *c)
|
||||
* net_send_flush() or net_recv_flush() if KORE_EVENT_WRITE or
|
||||
* KORE_EVENT_READ are set respectively in c->evt.flags.
|
||||
* Returning KORE_RESULT_ERROR from this callback will disconnect the
|
||||
* connection alltogether.
|
||||
* connection altogether.
|
||||
*/
|
||||
int
|
||||
connection_handle(struct connection *c)
|
||||
|
@ -64,7 +64,7 @@ page(struct http_request *req)
|
||||
|
||||
/*
|
||||
* Now we can fire off the query, once it returns we either have
|
||||
* a result on which we can operate or an error occured.
|
||||
* a result on which we can operate or an error occurred.
|
||||
*/
|
||||
if (!kore_pgsql_query(&sql, "SELECT * FROM coders")) {
|
||||
kore_pgsql_logerror(&sql);
|
||||
|
Loading…
x
Reference in New Issue
Block a user