Default json
This commit is contained in:
parent
b1d590419b
commit
d7d041ac54
6
main.c
6
main.c
@ -137,8 +137,10 @@ main(void)
|
|||||||
|
|
||||||
/* Actually parse HTTP document. */
|
/* Actually parse HTTP document. */
|
||||||
|
|
||||||
er = khttp_parse(&r, NULL, 0,
|
er = khttp_parsex(&r, ksuffixmap,
|
||||||
pages, PAGE__MAX, PAGE_INDEX);
|
kmimetypes, KMIME__MAX, NULL, 0,
|
||||||
|
pages, PAGE__MAX, KMIME_APP_JSON,
|
||||||
|
PAGE_INDEX, NULL, NULL, 0, NULL);
|
||||||
|
|
||||||
if (KCGI_OK != er) {
|
if (KCGI_OK != er) {
|
||||||
fprintf(stderr, "HTTP parse error: %d\n", er);
|
fprintf(stderr, "HTTP parse error: %d\n", er);
|
||||||
|
Loading…
Reference in New Issue
Block a user