Default json

This commit is contained in:
Meutel 2016-12-29 18:26:47 +01:00
parent b1d590419b
commit d7d041ac54

6
main.c
View File

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