Apparently Mongoose API changes all the time
This commit is contained in:
parent
8870b9e728
commit
7619aa67be
2
main.c
2
main.c
|
@ -170,7 +170,7 @@ void api_handler(struct mg_connection *c, int ev, void *evd, void *fnd) {
|
|||
struct mg_http_message *hm = evd;
|
||||
memset(url, 0, 256); memcpy(url, hm->uri.ptr, hm->uri.len);
|
||||
memset(method, 0, 32); memcpy(method, hm->method.ptr, hm->method.len);
|
||||
mg_straddr(c, addr, 255);
|
||||
mg_straddr(&c->rem, addr, 255);
|
||||
|
||||
printf("%-16s %-8s %s\n", addr, method, url);
|
||||
|
||||
|
|
Loading…
Reference in New Issue