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