X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fserver%2Fcalendar_functions.c;h=fe179cb008cc86daa3953026a7118fd58a2af9b0;hb=0e0d140960c9f47411c15c820cba700d7688d0b2;hp=7d88996ed1e16271c6528297b1b8b794fcf948ad;hpb=e00e07603c749a76ee790072df6ce4445d960c25;p=citadel.git diff --git a/webcit-ng/server/calendar_functions.c b/webcit-ng/server/calendar_functions.c index 7d88996ed..fe179cb00 100644 --- a/webcit-ng/server/calendar_functions.c +++ b/webcit-ng/server/calendar_functions.c @@ -45,5 +45,9 @@ void calendar_msglist(struct http_transaction *h, struct ctdlsession *c, char *r array_free(msglist); // FIXME we still fail because we aren't finished yet - do_404(h); + add_response_header(h, strdup("Content-type"), strdup("application/json")); + h->response_code = 200; + h->response_string = strdup("OK"); + h->response_body = "{ \"one\":111 , \"two\":222 , \"three\":333 }"; + h->response_body_length = strlen(h->response_body); }