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