fix spacing
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
static void ev_handler(struct mg_connection *c, int ev, void *ev_data) {
|
||||
if (ev == MG_EV_HTTP_MSG) {
|
||||
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
||||
printf("URL: %.*s\n", (int) hm->uri.len, hm->uri.buf);
|
||||
struct mg_http_message *hm = (struct mg_http_message *)ev_data;
|
||||
printf("URL: %.*s\n", (int)hm->uri.len, hm->uri.buf);
|
||||
if (mg_match(hm->uri, mg_str("/api/test"), NULL)) {
|
||||
mg_http_reply(c, 200, "", "%s", "test");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user