From d7d041ac54b35bd0c21d31b6aff076f31b13c3f4 Mon Sep 17 00:00:00 2001 From: Meutel Date: Thu, 29 Dec 2016 18:26:47 +0100 Subject: [PATCH] Default json --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index a222513..087daeb 100644 --- a/main.c +++ b/main.c @@ -137,8 +137,10 @@ main(void) /* Actually parse HTTP document. */ - er = khttp_parse(&r, NULL, 0, - pages, PAGE__MAX, PAGE_INDEX); + er = khttp_parsex(&r, ksuffixmap, + kmimetypes, KMIME__MAX, NULL, 0, + pages, PAGE__MAX, KMIME_APP_JSON, + PAGE_INDEX, NULL, NULL, 0, NULL); if (KCGI_OK != er) { fprintf(stderr, "HTTP parse error: %d\n", er);